﻿@{
    Layout = "~/Views/Shared/_FormWhite.cshtml";
}

@inject Microsoft.AspNetCore.Hosting.IWebHostEnvironment HostingEnvironment
@BundlerHelper.Render(HostingEnvironment.ContentRootPath, Url.Content("~/lib/jquery.ui/1.12.1/jquery-ui.min.css"))
@BundlerHelper.Render(HostingEnvironment.ContentRootPath, Url.Content("~/lib/jquery.ui/1.12.1/jquery-ui.min.js"))
@BundlerHelper.Render(HostingEnvironment.ContentRootPath, Url.Content("~/lib/jquery.smartwizard/4.0.1/css/smart_wizard.min.css"))
@BundlerHelper.Render(HostingEnvironment.ContentRootPath, Url.Content("~/lib/jquery.smartwizard/4.0.1/css/smart_wizard.min.js"))
@BundlerHelper.Render(HostingEnvironment.ContentRootPath, Url.Content("~/lib/highlight/9.13.1/css/vs.min.css"))
@BundlerHelper.Render(HostingEnvironment.ContentRootPath, Url.Content("~/lib/jquery.ui/1.12.1/highlight.pack.min.js"))
@BundlerHelper.Render(HostingEnvironment.ContentRootPath, Url.Content("~/lib/bootstrap.table/1.12.0/bootstrap-table.min.css"))
@BundlerHelper.Render(HostingEnvironment.ContentRootPath, Url.Content("~/lib/bootstrap.table/1.12.0/bootstrap-table.min.js"))
@BundlerHelper.Render(HostingEnvironment.ContentRootPath, Url.Content("~/yisha/css/style.min.css"))
@BundlerHelper.Render(HostingEnvironment.ContentRootPath, Url.Content("~/yisha/js/yisha.min.js"))
@BundlerHelper.Render(HostingEnvironment.ContentRootPath, Url.Content("~/lib/fileinput/5.0.3/css/fileinput.min.css"))
@BundlerHelper.Render(HostingEnvironment.ContentRootPath, Url.Content("~/lib/fileinput/5.0.3/js/fileinput.min.js"))

<style>
    .div-step {
        overflow: hidden;
    }

    .div-step-container {
        overflow-x: auto;
        overflow-y: auto
    }

    .droppable-active {
        background-color: #ffe !important
    }

    .tools a {
        cursor: pointer;
        font-size: 80%;
        margin-right: 6px;
    }

    .draggable {
        cursor: move
    }
</style>
<div style="padding:0 10px;">
    <div id="smartwizard">
        <ul>
            <li><a href="#step-0">基本信息</a></li>
            <li><a href="#step-1">参数选择</a></li>
            <li><a href="#step-2">设备列表</a></li>
            <li><a href="#step-3">外观</a></li>
            <li><a href="#step-4">高效过滤器完整性测试</a></li>
            <li><a href="#step-5">气流状态测试</a></li>
            <li><a href="#step-6">风速测试</a></li>
            <li><a href="#step-8">噪声测试</a></li>
            <li><a href="#step-9">照度测试</a></li>
            <li><a href="#step-10">紫外辐射强度</a></li>
            <li><a href="#step-11">洁净度-悬浮粒子测试结果</a></li>
            <li><a href="#step-12">微生物-沉降菌测试</a></li>
        </ul>
        <div>
            <div id="step-0" class="div-step">
                <div class="div-step-container">
                    <div class="panel panel-default" style="margin-bottom:5px">
                        <div class="panel-heading">
                            <h3 class="panel-title">
                                基本信息
                            </h3>
                        </div>
                        <div class="panel-body">
                            <form id="baseForm" class="form-horizontal m expform">
                                <div class="form-group">
                                    <div class="col-sm-4">
                                        <label class="col-sm-4 control-label ">流水号</label>
                                        <div class="col-sm-8">
                                            <input id="experimentNumber" col="ExperimentNumber" readonly="readonly" type="text" class="form-control" />
                                        </div>
                                    </div>
                                    <div class="col-sm-4">
                                        <label class="col-sm-4 control-label ">内部编号</label>
                                        <div class="col-sm-8">
                                            <input id="deviceNo" col="DeviceNo" type="text" class="form-control" />
                                        </div>
                                    </div>
                                    <div class="col-sm-4">
                                        <label class="col-sm-4 control-label ">设备名称</label>
                                        <div class="col-sm-8">
                                            <input id="deviceName" col="DeviceName" type="text" class="form-control" />
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-4">
                                        <label class="col-sm-4 control-label ">序列号</label>
                                        <div class="col-sm-8">
                                            <div id="deviceLicNo" col="DeviceLicNo"></div>
                                        </div>
                                    </div>
                                    <div class="col-sm-4">
                                        <label class="col-sm-4 control-label ">规格型号</label>
                                        <div class="col-sm-8">
                                            <input id="customModel" type="text" class="form-control" />
                                        </div>
                                    </div>
                                    <div class="col-sm-4">
                                        <label class="col-sm-4 control-label ">生产厂家</label>
                                        <div class="col-sm-8">
                                            <input id="madeFactory" type="text" class="form-control" />
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-4">
                                        <label class="col-sm-4 control-label ">客户名称</label>
                                        <div class="col-sm-8">
                                            <input id="accountName" col="AccountName" type="text" class="form-control" />
                                        </div>
                                    </div>
                                    <div class="col-sm-4">
                                        <label class="col-sm-4 control-label ">检验检测地点</label>
                                        <div class="col-sm-8">
                                            <input id="testPath" type="text" class="form-control" />
                                        </div>
                                    </div>
                                    <div class="col-sm-4">
                                        <label class="col-sm-4 control-label ">环境温度</label>
                                        <div class="col-sm-8">
                                            <input id="temp" type="number" class="form-control" />
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-4">
                                        <label class="col-sm-4 control-label ">相对湿度</label>
                                        <div class="col-sm-8">
                                            <input id="humidity" type="number" class="form-control" />
                                        </div>
                                    </div>
                                    <div class="col-sm-4">
                                        <label class="col-sm-4 control-label ">试验人</label>
                                        <div class="col-sm-8">
                                            @*<div id="ownerIds" col="OwnerIds"></div>*@
                                            <input id="ownerIds" readonly="readonly" type="text" class="form-control" />
                                        </div>
                                    </div>
                                    <div class="col-sm-4">
                                        <label class="col-sm-4 control-label ">参与人</label>
                                        <div class="col-sm-8">
                                            <div id="joinIds" col="JoinIds"></div>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-4">
                                        <label class="col-sm-4 control-label ">审核人</label>
                                        <div class="col-sm-8">
                                            <input id="reviewIds" readonly="readonly" type="text" class="form-control" />
                                        </div>
                                    </div>
                                    <div class="col-sm-4">
                                        <label class="col-sm-4 control-label ">批准人</label>
                                        <div class="col-sm-8">
                                            <input id="confirmIds" readonly="readonly" type="text" class="form-control" />
                                        </div>
                                    </div>
                                    <div class="col-sm-4">
                                        <label class="col-sm-4 control-label ">检验检测日期</label>
                                        <div class="col-sm-8">
                                            <input id="sumbitDatetime" col="SumbitDatetime" type="text" class="form-control" readonly="readonly" />
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                        <label class="col-sm-2 control-label ">技术依据</label>
                                        <div class="col-sm-8">
                                            <input id="yiJu1" type="checkbox" />
                                            <label for="yiJu1">YY 0569-2011 II级生物安全柜</label>
                                            <input id="yiJu2" type="checkbox" />
                                            <label for="yiJu2">JG/T 292-2010 洁净工作台</label>
                                        </div>
                                    </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
            <div id="step-1" class="div-step">
                <div class="div-step-container">
                    <div class="panel panel-default" style="margin-bottom:5px">
                        <div class="panel-heading">
                            <h3 class="panel-title">
                                参数选择
                            </h3>
                        </div>
                        <div class="panel-body">
                            <form class="form-horizontal m">
                                <div class="form-group">
                                    <div class="col-sm-12">
                                        <label class="col-sm-2 control-label ">参数</label>
                                        <div class="col-sm-10">
                                            <div class="col-sm-10" id="step" col="Step"></div>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
            <div id="step-2" class="div-step">
                <div class="div-step-container">
                    <div class="panel panel-default" style="margin-bottom:5px">
                        <div class="panel-heading">
                            <h3 class="panel-title">
                                设备列表
                            </h3>
                        </div>
                    </div>
                    <div class="panel-body">
                        <table id="gridTable" data-mobile-responsive="true"></table>
                    </div>
                </div>
            </div>
            <div id="step-3" class="div-step">
                <div class="div-step-container">
                    <div class="panel panel-default" style="margin-bottom:5px">
                        <div class="panel-heading">
                            <h3 class="panel-title">
                                外观
                            </h3>
                        </div>
                    </div>
                    <div class="panel-body">
                        <table class="table table-hover table-striped" data-mobile-responsive="true">
                            <tbody>
                                <tr>
                                    <td width="448" colspan="3">合格标准</td>
                                    <td width="152">是否合格？</td>
                                </tr>
                                <tr>
                                    <td colspan="3">箱体表面、工作区侧壁及台面无明显划伤、压痕，表面光洁，外形平整，表面涂层无龟裂起翘、起泡、脱落、流挂。</td>
                                    <td>
                                        <input type="radio" name="step31" value="合格">
                                        合格
                                        <input type="radio" name="step31" value="不合格">
                                        不合格
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">零部件表面光洁，无锈蚀氧化、压痕、无锐边、无明显毛刺。</td>
                                    <td>
                                        <input type="radio" name="step32" value="合格">
                                        合格
                                        <input type="radio" name="step32" value="不合格">
                                        不合格
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">说明功能的文字和图形符号标志正确、清晰、端正、牢固。</td>
                                    <td>
                                        <input type="radio" name="step33" value="合格">
                                        合格
                                        <input type="radio" name="step33" value="不合格">
                                        不合格
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">机箱焊接牢固，焊接表面光滑。</td>
                                    <td>
                                        <input type="radio" name="step36" value="合格">
                                        合格
                                        <input type="radio" name="step36" value="不合格">
                                        不合格
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" style="text-align:center">备注</td>
                                    <td colspan="2" style="text-align:center"><textarea id="step34" style="width:500px"></textarea></td>
                                </tr>
                                <tr>
                                    <td colspan="2" style="text-align:center">单项判定</td>
                                    <td colspan="2" style="text-align:center">
                                        <input type="radio" name="step35" value="合格">
                                        合格
                                        <input type="radio" name="step35" value="不合格">
                                        不合格
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div id="step-4" class="div-step">
                <div class="div-step-container">
                    <div class="panel panel-default" style="margin-bottom:5px">
                        <div class="panel-heading">
                            <h3 class="panel-title">
                                高效过滤器完整性测试
                            </h3>
                        </div>
                    </div>
                    <div class="panel-body">
                        <table class="table table-hover table-striped" data-mobile-responsive="true">
                            <tbody>
                                <tr>
                                    <td colspan="2" style="text-align:center">上游浓度（μg/L）</td>
                                    <td colspan="2" style="text-align:center">
                                        <input type="number" id="step42">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" style="text-align:center">送风过滤器漏过率（%）</td>
                                    <td colspan="2" style="text-align:center">
                                        <input type="number" id="step43">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" style="text-align:center">备注</td>
                                    <td colspan="2" style="text-align:center"><textarea id="step45" style="width:500px"></textarea></td>
                                </tr>
                                <tr>
                                    <td colspan="2" style="text-align:center">要求</td>
                                    <td colspan="2" style="text-align:center">
                                        1.送风过滤器漏过率 ≤0.01%；
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" style="text-align:center">单项判定</td>
                                    <td colspan="2" style="text-align:center">
                                        <input type="radio" name="step46" value="合格">
                                        合格
                                        <input type="radio" name="step46" value="不合格">
                                        不合格
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div id="step-5" class="div-step">
                <div class="div-step-container">
                    <div class="panel panel-default" style="margin-bottom:5px">
                        <div class="panel-heading">
                            <h3 class="panel-title">
                                气流状态测试
                            </h3>
                        </div>
                    </div>
                    <div class="panel-body">
                        <table class="table table-hover table-striped" data-mobile-responsive="true">
                            <tbody>
                                <tr>
                                    <td colspan="4"><input type="radio" name="step50" checked="checked" value="水平气流的洁净工作台">水平气流的洁净工作台</td>
                                </tr>
                                <tr>
                                    <td colspan="1">水平气流</td>
                                    <td colspan="2">气流流线应在散流孔前侧呈现向外模式，无向内气</td>
                                    <td colspan="1">
                                        <input type="radio" name="step51" value="合格">
                                        合格
                                        <input type="radio" name="step51" value="不合格">
                                        不合格
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4"><input type="radio" name="step50" value="垂直气流的洁净工作台">垂直气流的洁净工作台</td>
                                </tr>
                                <tr>
                                    <td colspan="1">内侧气流</td>
                                    <td colspan="2">气流流线应在均流板下部均呈现下降模式，无向上气</td>
                                    <td colspan="1">
                                        <input type="radio" name="step52" value="合格">
                                        合格
                                        <input type="radio" name="step52" value="不合格">
                                        不合格
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="1">中间气流</td>
                                    <td colspan="2">气流流线应在均流板下部均呈现下降模式，无向上气</td>
                                    <td colspan="1">
                                        <input type="radio" name="step53" value="合格">
                                        合格
                                        <input type="radio" name="step53" value="不合格">
                                        不合格
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="1">外侧气流</td>
                                    <td colspan="2">气流流线应在均流板下部均呈现下降模式，无向上气</td>
                                    <td colspan="1">
                                        <input type="radio" name="step54" value="合格">
                                        合格
                                        <input type="radio" name="step54" value="不合格">
                                        不合格
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" style="text-align:center">备注</td>
                                    <td colspan="2" style="text-align:center"><textarea id="step55" style="width:500px"></textarea></td>
                                </tr>
                                <tr>
                                    <td colspan="2" style="text-align:center">单项判定</td>
                                    <td colspan="2" style="text-align:center">
                                        <input type="radio" name="step56" value="合格">
                                        合格
                                        <input type="radio" name="step56" value="不合格">
                                        不合格
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div id="step-6" class="div-step">
                <div class="div-step-container">
                    <div class="panel panel-default" style="margin-bottom:5px">
                        <div class="panel-heading">
                            <h3 class="panel-title">
                                风速测试
                            </h3>
                        </div>
                    </div>
                    <div class="panel-body">
                        <table id="step6" class="table table-hover table-striped" data-mobile-responsive="true">
                            <tbody>
                                <tr>
                                    <td colspan="9">
                                        <input type="radio" name="step60" value="垂直气流">
                                        垂直气流
                                        <input type="radio" name="step60" value="水平气流">
                                        水平气流
                                    </td>
                                </tr>
                                <tr>
                                    <td rowspan="2" colspan="1">工作区长度</td>
                                    <td colspan="2">内侧（上层）</td>
                                    <td colspan="2">中间（中层）</td>
                                    <td colspan="2">外侧（下层）</td>
                                    <td colspan="2">
                                        最外侧（底层）
                                        （500mm以上深度/高度）
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="1">位置编号</td>
                                    <td colspan="1">实测值(m/s)</td>
                                    <td colspan="1">位置编号</td>
                                    <td colspan="1">实测值(m/s)</td>
                                    <td colspan="1">位置编号</td>
                                    <td colspan="1">实测值(m/s)</td>
                                    <td colspan="1">位置编号</td>
                                    <td colspan="1">实测值(m/s)</td>
                                </tr>
                                <tr>
                                    <td colspan="1"></td>
                                    <td colspan="1">I1</td>
                                    <td colspan="1"><input type="number" name="inner" id="step611" /></td>
                                    <td colspan="1">M1</td>
                                    <td colspan="1"><input type="number" name="middle" id="step612" /></td>
                                    <td colspan="1">E1</td>
                                    <td colspan="1"><input type="number" name="out" id="step613" /></td>
                                    <td colspan="1">EX1</td>
                                    <td colspan="1"><input type="number" name="outest" id="step614" /></td>
                                </tr>
                                <tr>
                                    <td colspan="1"></td>
                                    <td colspan="1">I2</td>
                                    <td colspan="1"><input type="number" name="inner" id="step621" /></td>
                                    <td colspan="1">M2</td>
                                    <td colspan="1"><input type="number" name="middle" id="step622" /></td>
                                    <td colspan="1">E2</td>
                                    <td colspan="1"><input type="number" name="out" id="step623" /></td>
                                    <td colspan="1">EX2</td>
                                    <td colspan="1"><input type="number" name="outest" id="step624" /></td>
                                </tr>
                                <tr>
                                    <td colspan="1"></td>
                                    <td colspan="1">I3</td>
                                    <td colspan="1"><input type="number" name="inner" id="step631" /></td>
                                    <td colspan="1">M3</td>
                                    <td colspan="1"><input type="number" name="middle" id="step632" /></td>
                                    <td colspan="1">E3</td>
                                    <td colspan="1"><input type="number" name="out" id="step633" /></td>
                                    <td colspan="1">EX3</td>
                                    <td colspan="1"><input type="number" name="outest" id="step634" /></td>
                                </tr>
                                <tr>
                                    <td colspan="1"></td>
                                    <td colspan="1">I4</td>
                                    <td colspan="1"><input type="number" name="inner" id="step641" /></td>
                                    <td colspan="1">M4</td>
                                    <td colspan="1"><input type="number" name="middle" id="step642" /></td>
                                    <td colspan="1">E4</td>
                                    <td colspan="1"><input type="number" name="out" id="step643" /></td>
                                    <td colspan="1">EX4</td>
                                    <td colspan="1"><input type="number" name="outest" id="step644" /></td>
                                </tr>
                                <tr>
                                    <td colspan="1"></td>
                                    <td colspan="1">I5</td>
                                    <td colspan="1"><input type="number" name="inner" id="step651" /></td>
                                    <td colspan="1">M5</td>
                                    <td colspan="1"><input type="number" name="middle" id="step652" /></td>
                                    <td colspan="1">E5</td>
                                    <td colspan="1"><input type="number" name="out" id="step653" /></td>
                                    <td colspan="1">EX5</td>
                                    <td colspan="1"><input type="number" name="outest" id="step654" /></td>
                                </tr>
                                <tr>
                                    <td colspan="1"></td>
                                    <td colspan="1">I6</td>
                                    <td colspan="1"><input type="number" name="inner" id="step661" /></td>
                                    <td colspan="1">M6</td>
                                    <td colspan="1"><input type="number" name="middle" id="step662" /></td>
                                    <td colspan="1">E6</td>
                                    <td colspan="1"><input type="number" name="out" id="step663" /></td>
                                    <td colspan="1">EX6</td>
                                    <td colspan="1"><input type="number" name="outest" id="step664" /></td>
                                </tr>
                                <tr>
                                    <td colspan="1">≤1100mm</td>
                                    <td colspan="1">I7</td>
                                    <td colspan="1"><input type="number" name="inner" id="step671" /></td>
                                    <td colspan="1">M7</td>
                                    <td colspan="1"><input type="number" name="middle" id="step672" /></td>
                                    <td colspan="1">E7</td>
                                    <td colspan="1"><input type="number" name="out" id="step673" /></td>
                                    <td colspan="1">EX7</td>
                                    <td colspan="1"><input type="number" name="outest" id="step674" /></td>
                                </tr>
                                <tr>
                                    <td colspan="1">≤1250mm</td>
                                    <td colspan="1">I8</td>
                                    <td colspan="1"><input type="number" name="inner" id="step681" /></td>
                                    <td colspan="1">M8</td>
                                    <td colspan="1"><input type="number" name="middle" id="step682" /></td>
                                    <td colspan="1">E8</td>
                                    <td colspan="1"><input type="number" name="out" id="step683" /></td>
                                    <td colspan="1">EX8</td>
                                    <td colspan="1"><input type="number" name="outest" id="step684" /></td>
                                </tr>
                                <tr>
                                    <td colspan="1">≤1400mm</td>
                                    <td colspan="1">I9</td>
                                    <td colspan="1"><input type="number" name="inner" id="step691" /></td>
                                    <td colspan="1">M9</td>
                                    <td colspan="1"><input type="number" name="middle" id="step692" /></td>
                                    <td colspan="1">E9</td>
                                    <td colspan="1"><input type="number" name="out" id="step693" /></td>
                                    <td colspan="1">EX9</td>
                                    <td colspan="1"><input type="number" name="outest" id="step694" /></td>
                                </tr>
                                <tr>
                                    <td colspan="1">≤1550mm</td>
                                    <td colspan="1">I10</td>
                                    <td colspan="1"><input type="number" name="inner" id="step6101" /></td>
                                    <td colspan="1">M10</td>
                                    <td colspan="1"><input type="number" name="middle" id="step6102" /></td>
                                    <td colspan="1">E10</td>
                                    <td colspan="1"><input type="number" name="out" id="step6103" /></td>
                                    <td colspan="1">EX10</td>
                                    <td colspan="1"><input type="number" name="outest" id="step6104" /></td>
                                </tr>
                                <tr>
                                    <td colspan="1">≤1700mm</td>
                                    <td colspan="1">I11</td>
                                    <td colspan="1"><input type="number" name="inner" id="step6111" /></td>
                                    <td colspan="1">M11</td>
                                    <td colspan="1"><input type="number" name="middle" id="step6112" /></td>
                                    <td colspan="1">E11</td>
                                    <td colspan="1"><input type="number" name="out" id="step6113" /></td>
                                    <td colspan="1">EX11</td>
                                    <td colspan="1"><input type="number" name="outest" id="step6114" /></td>
                                </tr>
                                <tr>
                                    <td colspan="1">≤1850mm</td>
                                    <td colspan="1">I12</td>
                                    <td colspan="1"><input type="number" name="inner" id="step6121" /></td>
                                    <td colspan="1">M12</td>
                                    <td colspan="1"><input type="number" name="middle" id="step6122" /></td>
                                    <td colspan="1">E12</td>
                                    <td colspan="1"><input type="number" name="out" id="step6123" /></td>
                                    <td colspan="1">EX12</td>
                                    <td colspan="1"><input type="number" name="outest" id="step6124" /></td>
                                </tr>
                                <tr>
                                    <td colspan="1">各列平均值</td>
                                    <td colspan="1">平均值</td>
                                    <td colspan="1"><input type="number" id="step6131" readonly="readonly" /></td>
                                    <td colspan="1">平均值</td>
                                    <td colspan="1"><input type="number" id="step6132" readonly="readonly" /></td>
                                    <td colspan="1">平均值</td>
                                    <td colspan="1"><input type="number" id="step6133" readonly="readonly" /></td>
                                    <td colspan="1">平均值</td>
                                    <td colspan="1"><input type="number" id="step6134" readonly="readonly" /></td>
                                </tr>
                                <tr>
                                    <td colspan="1">工作区长度（±5mm）*</td>
                                    <td colspan="1"><input type="number" id="step6142" /></td>
                                    <td colspan="1">平均实测风速(m/s)</td>
                                    <td colspan="2"><input type="number" id="step6151" readonly="readonly" /></td>
                                    <td colspan="2">公式：</td>
                                    <td colspan="2"><img src="~/image/step6152.gif" /></td>
                                </tr>
                                <tr>
                                    <td colspan="3">风速不均匀度(%) </td>
                                    <td colspan="2"><input type="number" id="step6171" readonly="readonly" /></td>
                                    <td colspan="2">公式：</td>
                                    <td colspan="2"><img src="~/image/step6172.png" /></td>
                                </tr>
                                <tr>
                                    <td colspan="9">
                                        操作指导：<br />
                                        测试平面为距离出风网板100mm的平面区域。风速仪的计数周期（Time constant）为5s。
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="1" style="text-align:center">备注</td>
                                    <td colspan="8" style="text-align:center"><textarea id="step6181" style="width:500px"></textarea></td>
                                </tr>
                                <tr>
                                    <td colspan="1" style="text-align:center">要求</td>
                                    <td colspan="8">
                                        平均风速为0.2 m/s ~0.5m/s; 风速不均度不超过20%
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="1" style="text-align:center">单项判定</td>
                                    <td colspan="8" style="text-align:center">
                                        <input type="radio" name="step6191" value="合格">
                                        合格
                                        <input type="radio" name="step6191" value="不合格">
                                        不合格
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div id="step-8" class="div-step">
                <div class="div-step-container">
                    <div class="panel panel-default" style="margin-bottom:5px">
                        <div class="panel-heading">
                            <h3 class="panel-title">
                                噪声测试
                            </h3>
                        </div>
                    </div>
                    <div class="panel-body">
                        <table id="step8" class="table table-hover table-striped" data-mobile-responsive="true">
                            <tbody>
                                <tr>
                                    <td colspan="1">噪声实测值N</td>
                                    <td colspan="1"><input type="number" name="Nbx" id="step81" /></td>
                                    <td colspan="1">背景噪声实测值Nb</td>
                                    <td colspan="1"><input type="number" name="Nbx" id="step82" /></td>
                                </tr>
                                <tr>
                                    <td colspan="1">修正后噪声值Nx</td>
                                    <td colspan="3"><input type="number" readonly="readonly" id="step83" /></td>
                                </tr>
                                <tr>
                                    <td colspan="1">修正公式</td>
                                    <td colspan="3">
                                        <table class="table table-hover table-striped" data-mobile-responsive="true">
                                            <tbody>
                                                <tr>
                                                    <td>测量中噪声和背景噪声的差值dB(A)</td>
                                                    <td>从测量总噪声中减去的数dB(A)</td>
                                                </tr>
                                                <tr>
                                                    <td>0~3.4</td>
                                                    <td>降低背景噪声重新测试</td>
                                                </tr>
                                                <tr>
                                                    <td>3.5~5.4</td>
                                                    <td>2</td>
                                                </tr>
                                                <tr>
                                                    <td>5.5~10.4</td>
                                                    <td>1</td>
                                                </tr>
                                                <tr>
                                                    <td>>10.5</td>
                                                    <td>0</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4">
                                        操作指导：
                                        前壁板水平中心向外300mm,且高于地面1.1m处的整机噪声。
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="1" style="text-align:center">备注</td>
                                    <td colspan="3" style="text-align:center"><textarea id="step84" style="width:500px"></textarea></td>
                                </tr>
                                <tr>
                                    <td colspan="1" style="text-align:center">要求</td>
                                    <td colspan="3">
                                        在普通声学条件下，噪声应不大于67dB(A)。
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="1" style="text-align:center">单项判定</td>
                                    <td colspan="3" style="text-align:center">
                                        <input type="radio" name="step85" value="合格">
                                        合格
                                        <input type="radio" name="step85" value="不合格">
                                        不合格
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div id="step-9" class="div-step">
                <div class="div-step-container">
                    <div class="panel panel-default" style="margin-bottom:5px">
                        <div class="panel-heading">
                            <h3 class="panel-title">
                                照度测试
                            </h3>
                        </div>
                    </div>
                    <div class="panel-body">
                        <table id="step9" class="table table-hover table-striped" data-mobile-responsive="true">
                            <tbody>
                                <tr>
                                    <td colspan="8">工作照度（lx）</td>
                                </tr>
                                <tr>
                                    <td colspan="1">位置</td>
                                    <td colspan="1">L1</td>
                                    <td colspan="1">L2</td>
                                    <td colspan="1">L3 ≤900mm</td>
                                    <td colspan="1">L4 ≤1200mm</td>
                                    <td colspan="1">L5 ≤1500mm</td>
                                    <td colspan="1">L6 ≤1800mm</td>
                                    <td colspan="1">L7 ≤2100mm</td>
                                </tr>
                                <tr>
                                    <td colspan="1">实测值Li</td>
                                    <td colspan="1"><input type="number" name="Li" id="step99" /></td>
                                    <td colspan="1"><input type="number" name="Li" id="step910" /></td>
                                    <td colspan="1"><input type="number" name="Li" id="step911" /></td>
                                    <td colspan="1"><input type="number" name="Li" id="step912" /></td>
                                    <td colspan="1"><input type="number" name="Li" id="step913" /></td>
                                    <td colspan="1"><input type="number" name="Li" id="step914" /></td>
                                    <td colspan="1"><input type="number" name="Li" id="step915" /></td>
                                </tr>
                                <tr>
                                    <td colspan="1">平均照度L</td>
                                    <td colspan="3"><input type="number" id="step916" readonly="readonly" /></td>
                                    <td colspan="1">公式：</td>
                                    <td colspan="3"><img src="~/image/step918.png" /></td>
                                </tr>
                                <tr>
                                    <td colspan="8">
                                        操作指导：<br />
                                        在工作台面上，沿工作台面两内侧壁中心连线设置照度测量点，测量点之间的距离不超过300mm，与侧壁的最小距离为150mm。
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="1" style="text-align:center">备注</td>
                                    <td colspan="7" style="text-align:center"><textarea id="step918" style="width:500px"></textarea></td>
                                </tr>
                                <tr>
                                    <td colspan="1" style="text-align:center">要求</td>
                                    <td colspan="7">
                                        1.平均照度应不小于300lx。
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="1" style="text-align:center">单项判定</td>
                                    <td colspan="7" style="text-align:center">
                                        <input type="radio" name="step919" value="合格">
                                        合格
                                        <input type="radio" name="step919" value="不合格">
                                        不合格
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div id="step-10" class="div-step">
                <div class="div-step-container">
                    <div class="panel panel-default" style="margin-bottom:5px">
                        <div class="panel-heading">
                            <h3 class="panel-title">
                                紫外辐射强度
                            </h3>
                        </div>
                    </div>
                    <div class="panel-body">
                        <table id="step10" class="table table-hover table-striped" data-mobile-responsive="true">
                            <tbody>
                                <tr>
                                    <td colspan="8">紫外辐射强度(mW/m²)</td>
                                </tr>
                                <tr>
                                    <td colspan="1">位置</td>
                                    <td colspan="1">UV1</td>
                                    <td colspan="1">UV2</td>
                                    <td colspan="1">UV3 ≤900mm</td>
                                    <td colspan="1">UV4 ≤1200mm</td>
                                    <td colspan="1">UV5 ≤1500mm</td>
                                    <td colspan="1">UV6 ≤1800mm</td>
                                    <td colspan="1">UV7 ≤2100mm</td>
                                </tr>
                                <tr>
                                    <td colspan="1">实测值UVi</td>
                                    <td colspan="1"><input type="number" name="UV" id="step101" /></td>
                                    <td colspan="1"><input type="number" name="UV" id="step102" /></td>
                                    <td colspan="1"><input type="number" name="UV" id="step103" /></td>
                                    <td colspan="1"><input type="number" name="UV" id="step104" /></td>
                                    <td colspan="1"><input type="number" name="UV" id="step105" /></td>
                                    <td colspan="1"><input type="number" name="UV" id="step106" /></td>
                                    <td colspan="1"><input type="number" name="UV" id="step107" /></td>
                                </tr>
                                <tr>
                                    <td colspan="1">最小值UVMin</td>
                                    <td colspan="3"><input type="number" id="step108" readonly="readonly" /></td>
                                    <td colspan="1">公式：</td>
                                    <td colspan="3"><img src="~/image/step108.png" /></td>
                                </tr>
                                <tr>
                                    <td colspan="8">
                                        操作指导：
                                        在工作台面上，沿工作台面两内侧壁中心连线设置照度测量点，测量点之间的距离不超过300mm，与侧壁的追销距离为150mm。
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="1" style="text-align:center">备注</td>
                                    <td colspan="7" style="text-align:center"><textarea id="step109" style="width:500px"></textarea></td>
                                </tr>
                                <tr>
                                    <td colspan="1" style="text-align:center">要求</td>
                                    <td colspan="7">
                                        各点紫外辐射强度应不小于400 mW/m²。
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="1" style="text-align:center">单项判定</td>
                                    <td colspan="7" style="text-align:center">
                                        <input type="radio" name="step1010" value="合格">
                                        合格
                                        <input type="radio" name="step1010" value="不合格">
                                        不合格
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div id="step-11" class="div-step">
                <div class="div-step-container">
                    <div class="panel panel-default" style="margin-bottom:5px">
                        <div class="panel-heading">
                            <h3 class="panel-title">
                                洁净度-悬浮粒子测试结果
                            </h3>
                        </div>
                    </div>
                    <div class="panel-body">
                        <table id="step11" class="table table-hover table-striped" data-mobile-responsive="true">
                            <tbody>
                                <tr>
                                    <td>测点</td>
                                    <td><input id="CA01" type="checkbox" name="CA00"><label for="CA01">0.3μm（个/m³）</label></td>
                                    <td><input id="CA02" type="checkbox" name="CA00"><label for="CA02">0.5μm（个/m³）</label></td>
                                    <td><input id="CA03" type="checkbox" name="CA00"><label for="CA03">1.0μm（个/m³）</label></td>
                                    <td><input id="CA04" type="checkbox" name="CA00"><label for="CA04">5.0μm（个/m³）</label></td>
                                </tr>
                                <tr>
                                    <td>位置1（C1）</td>
                                    <td><input type="number" name="CA11" id="step111" /></td>
                                    <td><input type="number" name="CA12" id="step112" /></td>
                                    <td><input type="number" name="CA13" id="step113" /></td>
                                    <td><input type="number" name="CA14" id="step114" /></td>
                                </tr>
                                <tr>
                                    <td>位置1（C2）</td>
                                    <td><input type="number" name="CA11" id="step115" /></td>
                                    <td><input type="number" name="CA12" id="step116" /></td>
                                    <td><input type="number" name="CA13" id="step117" /></td>
                                    <td><input type="number" name="CA14" id="step118" /></td>
                                </tr>
                                <tr>
                                    <td>位置1（C3）</td>
                                    <td><input type="number" name="CA11" id="step119" /></td>
                                    <td><input type="number" name="CA12" id="step1110" /></td>
                                    <td><input type="number" name="CA13" id="step1111" /></td>
                                    <td><input type="number" name="CA14" id="step1112" /></td>
                                </tr>
                                <tr>
                                    <td>位置1平均值(A)</td>
                                    <td><input type="number" id="step1113" readonly="readonly" /></td>
                                    <td><input type="number" id="step1114" readonly="readonly" /></td>
                                    <td><input type="number" id="step1115" readonly="readonly" /></td>
                                    <td><input type="number" id="step1116" readonly="readonly" /></td>
                                </tr>
                                <tr>
                                    <td>位置2（C1）</td>
                                    <td><input type="number" name="CA21" id="step1117" /></td>
                                    <td><input type="number" name="CA22" id="step1118" /></td>
                                    <td><input type="number" name="CA23" id="step1119" /></td>
                                    <td><input type="number" name="CA24" id="step1120" /></td>
                                </tr>
                                <tr>
                                    <td>位置2（C2）</td>
                                    <td><input type="number" name="CA21" id="step1121" /></td>
                                    <td><input type="number" name="CA22" id="step1122" /></td>
                                    <td><input type="number" name="CA23" id="step1123" /></td>
                                    <td><input type="number" name="CA24" id="step1124" /></td>
                                </tr>
                                <tr>
                                    <td>位置2（C3）</td>
                                    <td><input type="number" name="CA21" id="step1125" /></td>
                                    <td><input type="number" name="CA22" id="step1126" /></td>
                                    <td><input type="number" name="CA23" id="step1127" /></td>
                                    <td><input type="number" name="CA24" id="step1128" /></td>
                                </tr>
                                <tr>
                                    <td>位置2平均值(A)</td>
                                    <td><input type="number" id="step1129" readonly="readonly" /></td>
                                    <td><input type="number" id="step1130" readonly="readonly" /></td>
                                    <td><input type="number" id="step1131" readonly="readonly" /></td>
                                    <td><input type="number" id="step1132" readonly="readonly" /></td>
                                </tr>
                                <tr>
                                    <td>位置3（C1）</td>
                                    <td><input type="number" name="CA31" id="step1133" /></td>
                                    <td><input type="number" name="CA32" id="step1134" /></td>
                                    <td><input type="number" name="CA33" id="step1135" /></td>
                                    <td><input type="number" name="CA34" id="step1136" /></td>
                                </tr>
                                <tr>
                                    <td>位置3（C2）</td>
                                    <td><input type="number" name="CA31" id="step1137" /></td>
                                    <td><input type="number" name="CA32" id="step1138" /></td>
                                    <td><input type="number" name="CA33" id="step1139" /></td>
                                    <td><input type="number" name="CA34" id="step1140" /></td>
                                </tr>
                                <tr>
                                    <td>位置3（C3）</td>
                                    <td><input type="number" name="CA31" id="step1141" /></td>
                                    <td><input type="number" name="CA32" id="step1142" /></td>
                                    <td><input type="number" name="CA33" id="step1143" /></td>
                                    <td><input type="number" name="CA34" id="step1144" /></td>
                                </tr>
                                <tr>
                                    <td>位置3平均值(A)</td>
                                    <td><input type="number" id="step1145" readonly="readonly" /></td>
                                    <td><input type="number" id="step1146" readonly="readonly" /></td>
                                    <td><input type="number" id="step1147" readonly="readonly" /></td>
                                    <td><input type="number" id="step1148" readonly="readonly" /></td>
                                </tr>
                                <tr>
                                    <td>位置4（C1）</td>
                                    <td><input type="number" name="CA41" id="step1149" /></td>
                                    <td><input type="number" name="CA42" id="step1150" /></td>
                                    <td><input type="number" name="CA43" id="step1151" /></td>
                                    <td><input type="number" name="CA44" id="step1152" /></td>
                                </tr>
                                <tr>
                                    <td>位置4（C2）</td>
                                    <td><input type="number" name="CA41" id="step1153" /></td>
                                    <td><input type="number" name="CA42" id="step1154" /></td>
                                    <td><input type="number" name="CA43" id="step1155" /></td>
                                    <td><input type="number" name="CA44" id="step1156" /></td>
                                </tr>
                                <tr>
                                    <td>位置4（C3）</td>
                                    <td><input type="number" name="CA41" id="step1157" /></td>
                                    <td><input type="number" name="CA42" id="step1158" /></td>
                                    <td><input type="number" name="CA43" id="step1159" /></td>
                                    <td><input type="number" name="CA44" id="step1160" /></td>
                                </tr>
                                <tr>
                                    <td>位置4平均值(A)</td>
                                    <td><input type="number" id="step1161" readonly="readonly" /></td>
                                    <td><input type="number" id="step1162" readonly="readonly" /></td>
                                    <td><input type="number" id="step1163" readonly="readonly" /></td>
                                    <td><input type="number" id="step1164" readonly="readonly" /></td>
                                </tr>
                                <tr>
                                    <td>位置5（C1）</td>
                                    <td><input type="number" name="CA51" id="step1165" /></td>
                                    <td><input type="number" name="CA52" id="step1166" /></td>
                                    <td><input type="number" name="CA53" id="step1167" /></td>
                                    <td><input type="number" name="CA54" id="step1168" /></td>
                                </tr>
                                <tr>
                                    <td>位置5（C2）</td>
                                    <td><input type="number" name="CA51" id="step1169" /></td>
                                    <td><input type="number" name="CA52" id="step1170" /></td>
                                    <td><input type="number" name="CA53" id="step1171" /></td>
                                    <td><input type="number" name="CA54" id="step1172" /></td>
                                </tr>
                                <tr>
                                    <td>位置5（C3）</td>
                                    <td><input type="number" name="CA51" id="step1173" /></td>
                                    <td><input type="number" name="CA52" id="step1174" /></td>
                                    <td><input type="number" name="CA53" id="step1175" /></td>
                                    <td><input type="number" name="CA54" id="step1176" /></td>
                                </tr>
                                <tr>
                                    <td>位置5平均值(A)</td>
                                    <td><input type="number" id="step1177" readonly="readonly" /></td>
                                    <td><input type="number" id="step1178" readonly="readonly" /></td>
                                    <td><input type="number" id="step1179" readonly="readonly" /></td>
                                    <td><input type="number" id="step1180" readonly="readonly" /></td>
                                </tr>
                                <tr>
                                    <td>
                                        平均粒子浓度(M)
                                    </td>
                                    <td><input type="number" id="step1181" readonly="readonly" /></td>
                                    <td><input type="number" id="step1182" readonly="readonly" /></td>
                                    <td><input type="number" id="step1183" readonly="readonly" /></td>
                                    <td><input type="number" id="step1184" readonly="readonly" /></td>
                                </tr>
                                <tr>
                                    <td>
                                        平均值均值的标准误差（SE）
                                    </td>
                                    <td><input type="number" id="step1185" readonly="readonly" /></td>
                                    <td><input type="number" id="step1186" readonly="readonly" /></td>
                                    <td><input type="number" id="step1187" readonly="readonly" /></td>
                                    <td><input type="number" id="step1188" readonly="readonly" /></td>
                                </tr>
                                <tr>
                                    <td>
                                        t分布系数
                                    </td>
                                    <td>2.13</td>
                                    <td>2.13</td>
                                    <td>2.13</td>
                                    <td>2.13</td>
                                    @*<td colspan="3"><input type="text" id="step108" readonly="readonly" /></td>
            <td colspan="1">公式：</td>
            <td colspan="3"><img src="~/image/step108.png" /></td>*@
                                </tr>
                                <tr>
                                    <td>
                                        95%置信上限UCL值
                                    </td>
                                    <td><input type="number" id="step1189" readonly="readonly" /></td>
                                    <td><input type="number" id="step1190" readonly="readonly" /></td>
                                    <td><input type="number" id="step1191" readonly="readonly" /></td>
                                    <td><input type="number" id="step1192" readonly="readonly" /></td>
                                </tr>
                                <tr>
                                    <td>
                                        单次采样量（L）
                                    </td>
                                    <td colspan="4"><input type="number" name="CA" id="step1193" /></td>
                                </tr>
                                <tr>
                                    <td colspan="5">
                                        <img src="~/image/step11251.png" />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="1">
                                        洁净度等级
                                    </td>
                                    <td colspan="4"><input type="number" name="CA" id="step1194" /></td>
                                </tr>
                                <tr>
                                    <td colspan="5">
                                        操作指导：<br />
                                        以0.5μm或5.0μm为主要参考粒径；<br />
                                        每采样点采样3次；<br />
                                        每次最小采样量为8.6L；<br />
                                        共采样5个点，采样点位置见下图：<br />
                                        <img src="~/image/step11271.png" />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="1" style="text-align:center">备注</td>
                                    <td colspan="4" style="text-align:center"><textarea id="step1195" style="width:500px"></textarea></td>
                                </tr>
                                <tr>
                                    <td colspan="1" style="text-align:center">要求</td>
                                    <td colspan="4">
                                        5级洁净度要求：<br />
                                        1. 0.5μm不大于3520粒/m³；<br />
                                        2. 5.0μm不大于29粒/m³；
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="1" style="text-align:center">单项判定</td>
                                    <td colspan="7" style="text-align:center">
                                        <input type="radio" name="step1196" value="合格">
                                        合格
                                        <input type="radio" name="step1196" value="不合格">
                                        不合格
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="1">
                                        数据条
                                    </td>
                                    <td colspan="7">
                                        <div class="file-loading">
                                            <input id="step11doc" type="file" multiple>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div id="step-12" class="div-step">
                <div class="div-step-container">
                    <div class="panel panel-default" style="margin-bottom:5px">
                        <div class="panel-heading">
                            <h3 class="panel-title">
                                微生物-沉降菌测试
                            </h3>
                        </div>
                    </div>
                    <div class="panel-body">
                        <table id="step12" class="table table-hover table-striped" data-mobile-responsive="true">
                            <tbody>
                                <tr>
                                    <td colspan="1">测点</td>
                                    <td colspan="3">细菌菌落数CFU</td>
                                </tr>
                                <tr>
                                    <td colspan="1">位置1</td>
                                    <td colspan="3"><input type="number" name="WSW" id="step121" /></td>
                                </tr>
                                <tr>
                                    <td colspan="1">位置2</td>
                                    <td colspan="3"><input type="number" name="WSW" id="step122" /></td>
                                </tr>
                                <tr>
                                    <td colspan="1">位置3</td>
                                    <td colspan="3"><input type="number" name="WSW" id="step123" /></td>
                                </tr>
                                <tr>
                                    <td colspan="1">位置4</td>
                                    <td colspan="3"><input type="number" name="WSW" id="step124" /></td>
                                </tr>
                                <tr>
                                    <td colspan="1">位置5</td>
                                    <td colspan="3"><input type="number" name="WSW" id="step125" /></td>
                                </tr>
                                <tr>
                                    <td colspan="1">细菌集落数平均值</td>
                                    <td colspan="3"><input type="number" id="step126" readonly="readonly" /></td>
                                </tr>
                                <tr>
                                    <td>采集开始时间</td>
                                    <td><input type="text" id="step127" readonly="readonly" /></td>
                                    <td>采集结束时间</td>
                                    <td><input type="text" id="step128" readonly="readonly" /></td>
                                </tr>
                                <tr>
                                    <td>采集周期</td>
                                    <td><input type="text" id="step129" /></td>
                                    <td>培养温度（℃）</td>
                                    <td><input type="text" id="step1210" /></td>
                                </tr>
                                <tr>
                                    <td>培养开始时间</td>
                                    <td><input type="text" id="step1211" readonly="readonly" /></td>
                                    <td>培养结束时间</td>
                                    <td><input type="text" id="step1212" readonly="readonly" /></td>
                                </tr>
                                <tr>
                                    <td colspan="1">培养周期（h）</td>
                                    <td colspan="3"><input type="text" id="step1213" /></td>
                                </tr>
                                <tr>
                                    <td colspan="4">
                                        操作指导：<br />
                                        被测柜体至少稳定运行10min以上；<br />
                                        将装有营养琼脂的90mm培养皿开盖至于工作台操作面上；<br />
                                        暴露0.5h后，盖上皿盖，取出培养皿在30℃~35℃的环境中培养48h，计数细菌集落数；<br />
                                        共采样5个点，采样点位置见下图：<br />
                                        <img src="~/image/step11271.png" />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="1" style="text-align:center">备注</td>
                                    <td colspan="3" style="text-align:center"><textarea id="step1214" style="width:500px"></textarea></td>
                                </tr>
                                <tr>
                                    <td colspan="1" style="text-align:center">要求</td>
                                    <td colspan="3">
                                        细菌集落数平均值应≤0.5
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="1" style="text-align:center">单项判定</td>
                                    <td colspan="3" style="text-align:center">
                                        <input type="radio" name="step1215" value="合格">
                                        合格
                                        <input type="radio" name="step1215" value="不合格">
                                        不合格
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="1">
                                       数据条
                                    </td>
                                    <td colspan="3">
                                        <div class="file-loading">
                                            <input id="step12doc" type="file" multiple>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    var id = ys.request("id");
    var exp = {};
    var datas = {};
    var flow = {};
    var opruser = @Html.Raw(ViewBag.User);
    var userId = opruser.UserId;
    var step11Doc = '';
    var step12Doc = '';
    $(function () {
        getExperimentData();
        bindSmartwizard();
        bindBasic();
        bindPara();
        bindDeviceGrid();
        bindGrid3();
        bindGrid4();
        bindGrid5();
        bindGrid6();
        bindGrid8();
        bindGrid9();
        bindGrid10();
        bindGrid11();
        bindGrid12();

        ys.ajax({
            url:'@Url.Content("~/OrganizationManage/User/GetUserAuthorizeJson")',
            type: "get",
            success: function (obj) {
                if (obj.Tag == 1) {
                    var reviewAuthority = false;
                    var confirmAuthority = false;
                    obj.Result.MenuAuthorize.forEach(function (authority, authorityIndex) {
                        if (authority.Authorize == "experiment:experimentdata:review") {
                            reviewAuthority = true;
                        }
                        if (authority.Authorize == "experiment:experimentdata:confirm") {
                            confirmAuthority = true;
                        }
                    });

                    if ((!exp.Status || exp.Status == 0 || exp.Status == 2 || exp.Status == 5) && (userId == exp.OwnerIds || !exp.OwnerIds)) {
                        //未提交、未保存或审核拒绝,且当前用户等于试验人或未指定试验人
                        $("#btnSumbit").show();
                        $("#btnSave").show();
                        return;
                    } else if (reviewAuthority && exp.Status == 1) {
                        //审核人前来审核原始记录
                        $("#btnSumbit").hide();
                        $("#btnSave").hide();
                        $("#btnPass").show();
                        $("#btnReject").show();
                    } else if (confirmAuthority && exp.Status == 3) {
                        //批准人前来批准原始记录
                        $("#btnConfirm").show();
                        $("#btnCofRej").show();
                    }

                }
            }
        });
    });

    function getExperimentData() {
        if (id > 0) {
            ys.ajax({
                url: '@Url.Content("~/ExperimentManage/ExperimentData/GetFormJson")' + '?id=' + id,
                type: 'get',
                async: false,
                success: function (obj) {
                    if (obj.Tag == 1) {
                        exp = obj.Result;
                        datas = $.parseJSON(obj.Result.Datas);
                    }
                }
            });
        }
    }

    function bindSmartwizard() {
        $('#smartwizard').smartWizard({
            selected: 0,
            theme: 'arrows',
            transitionEffect: 'fade',
            anchorSettings: {
                enableAllAnchors: true
            },
            toolbarSettings: {
                toolbarPosition: 'bottom',
                toolbarExtraButtons: [{ id: 'btnSave', label: '保存', onClick: function () { saveExperimentData(0); }, display: "none" },
                    { id: 'btnSumbit', label: '提交', onClick: function () { saveExperimentData(1); }, display: "none" },
                    { id: 'btnPass', label: '审核通过', onClick: function () { saveExperimentData(3); }, display: "none" },
                    { id: 'btnReject', label: '审核拒绝', onClick: function () { saveExperimentData(2); }, display: "none" },
                    { id: 'btnConfirm', label: '批准', onClick: function () { saveExperimentData(4); }, display: "none" },
                    { id: 'btnCofRej', label: '批准拒绝', onClick: function () { saveExperimentData(5); }, display: "none" }]
            }
        });
    }

    function bindBasic() {
        var url = encodeURI('@Url.Content("~/DeviceManage/Module4/GetListJson?Field60=洁净工作台")');
        ys.ajax({
            url: url,
            async: false,
            success: function (obj) {
                if (obj.Tag == 1) {
                    $("#deviceLicNo").ysComboBox({
                        data: obj.Result,
                        key: "Field1",
                        value: "Field1",
                        class: "form-control",
                        onChange: function () {
                            var _this = this.value;
                            var licData = obj.Result.find(function (a) {
                                return a.Field1 == _this;
                            });
                            $("#accountName").val(licData.Field55Text);
                            $("#madeFactory").val(licData.Field2Text);
                            $("#customModel").val(licData.Field3);
                            $("#testPath").val(licData.Field64);
                            $('#deviceNo').val(licData.Field59);
                            $('#deviceName').val(licData.Field60);
                        }
                    });
                }
                else {
                    ys.msgError(obj.Message);
                }
            }
        });

        ys.ajax({
            url: '@Url.Content("~/OrganizationManage/User/GetListJson")',
            async: false,
            success: function (obj) {
                if (obj.Tag == 1) {
                    //$("#ownerIds").ysComboBox({
                    //    data: obj.Result,
                    //    key: "Id",
                    //    value: "UserName",
                    //    class: "form-control"
                    //});
                    $("#joinIds").ysComboBox({
                        data: obj.Result,
                        key: "Id",
                        value: "UserName",
                        class: "form-control",
                        multiple: true
                    });
                    if (exp.Id) {
                        var review = obj.Result.find(function (a) {
                            return a.Id == exp.ReviewIds;
                        });
                        if (review) {
                            $("#reviewIds").val(review.UserName);
                        }
                        var confirm = obj.Result.find(function (a) {
                            return a.Id == exp.ConfirmIds;
                        });
                        if (confirm) {
                            $("#confirmIds").val(confirm.UserName);
                        }
                        var user = obj.Result.find(function (a) {
                            return a.Id == exp.OwnerIds;
                        });
                        if (user) {
                            $("#ownerIds").val(user.UserName);
                        }
                    } else {
                        var user = obj.Result.find(function (a) {
                            return a.Id == userId;
                        });
                        if (user) {
                            $("#ownerIds").val(user.UserName);
                        }
                    }

                }
                else {
                    ys.msgError(obj.Message);
                }
            }
        });

        if (exp.Id) {
            $('#baseForm').setWebControls(exp);
            $("#workLenght").val(datas.WorkLenght);
            $("#customModel").val(datas.CustomModel);
            $("#madeFactory").val(datas.MadeFactory);
            $("#temp").val(datas.Temp);
            $("#testPath").val(datas.TestPath);
            $("#humidity").val(datas.Humidity);
            $("#deviceName").val(datas.DeviceName);
            $("#yiJu1").attr("checked", datas.YiJu1);
            $("#yiJu2").attr("checked", datas.YiJu2);
            laydate.render({ elem: '#sumbitDatetime', format: 'yyyy-MM-dd HH:mm:ss', type: 'datetime' });
        } else {
            laydate.render({ elem: '#sumbitDatetime', format: 'yyyy-MM-dd HH:mm:ss', type: 'datetime', value: new Date() });
        }
    }

    function bindPara() {
        $('#smartwizard').smartWizard("disableAll");
        $('#smartwizard').smartWizard("showStep", 0);
        $('#smartwizard').smartWizard("showStep", 1);
        $('#smartwizard').smartWizard("showStep", 2);
        var step = [{ StepId: 3, StepName: "外观" }, { StepId: 4, StepName: "高效过滤器完整性测试" }, { StepId: 5, StepName: "气流状态测试" },
            { StepId: 6, StepName: "风速测试" }, { StepId: 7, StepName: "噪声测试" },
            { StepId: 8, StepName: "照度测试" }, { StepId: 9, StepName: "紫外辐射强度" },
            { StepId: 10, StepName: "洁净度-悬浮粒子测试结果" }, { StepId: 11, StepName: "微生物-沉降菌测试" }];
        if (exp.Step) {
            var oStep = exp.Step.split(',');
            for (var s in step) {
                for (var o in oStep) {
                    if (step[s].StepId == oStep[o]) {
                        step[s].Selected = true;
                        $('#smartwizard').smartWizard("showStep", step[s].StepId);
                    }
                }
            }
        } else {
            for (var s in step) {
                step[s].Selected = true;
                $('#smartwizard').smartWizard("showStep", step[s].StepId);
            }
        }
        $("#step").ysCheckBox({
            data: step,
            key: "StepId",
            value: "StepName",
            select: "Selected"
        });

        $('#step').on('ifChanged', function (event) {
            if (event.target.checked) {
                $('#smartwizard').smartWizard("showStep", event.target.value);
            } else {
                $('#smartwizard').smartWizard("disableStep", event.target.value);
            }
        });
    }

    function bindDeviceGrid() {
        if (!datas.DeviceType) {
            ys.ajax({
                url: '@Url.Content("~/ProductManage/ProductDevice/GetNOListJson")' + '?ProductId=11',
                type: 'get',
                async: false,
                success: function (obj) {
                    var deviceType = [];
                    var deviceName = '';
                    for (var k in obj.Result) {
                        if (deviceName == obj.Result[k].DeviceName) {
                            for (var k2 in deviceType) {
                                if (deviceType[k2].DeviceName == deviceName) {
                                    if (!deviceType[k2].Devices) {
                                        deviceType[k2].Devices = [];
                                    }
                                    var device = {
                                        DeviceNO: obj.Result[k].DeviceNO,
                                        BookNO: obj.Result[k].BookNO,
                                        Feature: obj.Result[k].Feature,
                                        XingHao: obj.Result[k].XingHao,
                                        FanWei: obj.Result[k].FanWei,
                                        JiGou: obj.Result[k].JiGou,
                                    }
                                    deviceType[k2].Devices.push(device);
                                }
                            }
                        } else {
                            deviceType.push(obj.Result[k]);
                            deviceType[deviceType.length - 1].Devices = [];
                            var device = {
                                DeviceNO: obj.Result[k].DeviceNO,
                                BookNO: obj.Result[k].BookNO,
                                Feature: obj.Result[k].Feature,
                                XingHao: obj.Result[k].XingHao,
                                FanWei: obj.Result[k].FanWei,
                                JiGou: obj.Result[k].JiGou,
                            }
                            deviceType[deviceType.length - 1].Devices.push(device);
                            deviceName = obj.Result[k].DeviceName;
                        }
                    }
                    datas.DeviceType = deviceType;
                }
            });
        }
        for (var i in datas.DeviceType) {
            if (datas.DeviceType[i].IsMustDevice) {
                var bkArr = datas.DeviceType[i].BookNO ? datas.DeviceType[i].BookNO.split("/") : [];
                datas.DeviceType[i].BookNO2 = bkArr[0] ? bkArr[0] : '';
                datas.DeviceType[i].ArrTime = bkArr[1] ? bkArr[1] : '';
            }
        }
        $('#gridTable').bootstrapTable({
            data: datas.DeviceType,
            columns: [
                {
                    field: 'IsMustDevice', title: '是否需要', formatter: function(value, row, index) {
                        var ck = value ? 'checked="checked"' : ' ';
                        return '<input id="deviceNeed' + index + '" type="checkbox" ' + ck + '>';
                    }
                },
                { field: 'DeviceName', title: '设备' },
                {
                    field: 'DeviceNO', title: '编号', formatter: function (value, row, index) {
                        return '<div id="deviceNo' + index + '"></div>';
                    }
                },
                { field: 'ArrTime', title: '有效期至' },
                { field: 'BookNO2', title: '证书' },
                { field: 'Feature', title: '技术特征' }
            ]
        });
        for (var i in datas.DeviceType) {
            $("#deviceNo" + i).ysComboBox({
                data: datas.DeviceType[i].Devices,
                key: "DeviceNO",
                value: "DeviceNO",
                default: datas.DeviceType[i].DeviceNO
            });
        }
    }

    function bindGrid3() {
        if (datas.step3) {
            $("input[name='step31'][value='" + datas.step3.step31 + "']").attr("checked", true);
            $("input[name='step32'][value='" + datas.step3.step32 + "']").attr("checked", true);
            $("input[name='step33'][value='" + datas.step3.step33 + "']").attr("checked", true);
            $("#step34").val(datas.step3.step34);
            $("input[name='step35'][value='" + datas.step3.step35 + "']").attr("checked", true);
            $("input[name='step36'][value='" + datas.step3.step36 + "']").attr("checked", true);
        }
    }

    function bindGrid4() {
        if (datas.step4) {
            $("#step42").val(datas.step4.step42);
            $("#step43").val(datas.step4.step43);
            $("#step45").val(datas.step4.step45);
            $("input[name='step46'][value='" + datas.step4.step46 + "']").attr("checked", true);
        }
    }

    function bindGrid5() {
        if (datas.step5) {
            $("input[name='step50'][value='" + datas.step5.step50 + "']").attr("checked", true);
            $("input[name='step51'][value='" + datas.step5.step51 + "']").attr("checked", true);
            $("input[name='step52'][value='" + datas.step5.step52 + "']").attr("checked", true);
            $("input[name='step53'][value='" + datas.step5.step53 + "']").attr("checked", true);
            $("input[name='step54'][value='" + datas.step5.step54 + "']").attr("checked", true);
            $("#step55").val(datas.step5.step55);
            $("input[name='step56'][value='" + datas.step5.step56 + "']").attr("checked", true);
        }
    }

    function bindGrid6() {
        if (datas.step6) {
            for (var i = 1; i < 14; i++) {
                for (var j = 1; j < 5; j++) {
                    var htmlId = "step6" + i + j;
                    $("#" + htmlId).val(datas.step6[htmlId]);
                }
            }
            $("#step6142").val(datas.step6.step6142);
            $("#step6151").val(datas.step6.step6151);
            $("#step6171").val(datas.step6.step6171);
            $("#step6181").val(datas.step6.step6181);
            $("input[name='step6191'][value='" + datas.step6.step6191 + "']").attr("checked", true);
            $("input[name='step60'][value='" + datas.step6.step60 + "']").attr("checked", true);
        }
        bindGrid6Event();
    }

    function bindGrid6Event() {
        $("input[name='inner']").on("blur", function () {
            if (this.value) {
                this.value = Number(this.value.replace(/[^\d.]/g, '')).toFixed(2) <= 0 ? '' : Number(this.value.replace(/[^\d.]/g, '')).toFixed(2);
                $("#step6131").val(getRowAvg('step6', '1', 12).toFixed(2));
                bindDVD_DV();
            }
        });
        $("input[name='middle']").on("blur", function () {
            if (this.value) {
                this.value = Number(this.value.replace(/[^\d.]/g, '')).toFixed(2) <= 0 ? '' : Number(this.value.replace(/[^\d.]/g, '')).toFixed(2);
                $("#step6132").val(getRowAvg('step6', '2', 12).toFixed(2));
                bindDVD_DV();
            }
        });
        $("input[name='out']").on("blur", function () {
            if (this.value) {
                this.value = Number(this.value.replace(/[^\d.]/g, '')).toFixed(2) <= 0 ? '' : Number(this.value.replace(/[^\d.]/g, '')).toFixed(2);
                $("#step6133").val(getRowAvg('step6', '3', 12).toFixed(2));
                bindDVD_DV();
            }
        });
        $("input[name='outest']").on("blur", function () {
            if (this.value) {
                this.value = Number(this.value.replace(/[^\d.]/g, '')).toFixed(2) <= 0 ? '' : Number(this.value.replace(/[^\d.]/g, '')).toFixed(2);
                $("#step6134").val(getRowAvg('step6', '4', 12).toFixed(2));
                bindDVD_DV();
            }
        });
        $("#step6142").on("blur", function () {
            if (this.value) {
                this.value = Number(this.value.replace(/[^\d.]/g, '')).toFixed(0) <= 0 ? '' : Number(this.value.replace(/[^\d.]/g, '')).toFixed(0);
            }
        });
    }

    function bindGrid8() {
        if (datas.step8) {
            $("#step81").val(datas.step8.step81);
            $("#step82").val(datas.step8.step82);
            $("#step83").val(datas.step8.step83);
            $("#step84").val(datas.step8.step84);
            $("input[name='step85'][value='" + datas.step8.step85 + "']").attr("checked", true);
        }
        bindGrid8Event();
    }

    function bindGrid8Event() {
        $("input[name='Nbx']").on("blur", function () {
            if (this.value) {
                this.value = Number(this.value.replace(/[^\d.]/g, '')).toFixed(1);
                var n = $("#step81").val();
                var nb = $("#step82").val();
                var diff = n - nb;
                if (diff <= 3.4) {
                    $("#step83").val("请重新测试");
                }
                else if (diff <= 5.4 && diff > 3.4) {
                    $("#step83").val(n - 2);
                }
                else if (diff <= 10.4 && diff > 5.4) {
                    $("#step83").val(n - 1);
                }
                else if (diff >= 10.5) {
                    $("#step83").val(n);
                }
            }
        });
    }

    function bindGrid9() {
        if (datas.step9) {
            for (var i = 9; i < 19; i++) {
                var htmlId = "step9" + i;
                $("#" + htmlId).val(datas.step9[htmlId]);
            }
            $("input[name='step919'][value='" + datas.step9.step919 + "']").attr("checked", true);
        }
        bindGrid9Event();
    }

    function bindGrid9Event() {
        $("input[name='Li']").on("blur", function () {
            if (this.value) {
                this.value = Number(this.value.replace(/[^\d.]/g, '')).toFixed(0);
                $("#step916").val(getAvg('step9', 9, 15).toFixed(0));
            }
        });
    }

    function bindGrid10() {
        if (datas.step10) {
            for (var i = 1; i < 10; i++) {
                var htmlId = "step10" + i;
                $("#" + htmlId).val(datas.step10[htmlId]);
            }
            $("input[name='step1010'][value='" + datas.step10.step1010 + "']").attr("checked", true);
        }
        bindGrid10Event();
    }

    function bindGrid10Event() {
        $("input[name='UV']").on("blur", function () {
            if (this.value) {
                this.value = Number(this.value.replace(/[^\d.]/g, '')).toFixed(0);
                $("#step108").val(getMin('step10', 9, 7).toFixed(0));
            }
        });
    }

    function bindGrid11() {
        var docArr = [];
        var infoList = [];
        if (datas.step11) {
            for (var i = 1; i < 96; i++) {
                var htmlId = "step11" + i;
                $("#" + htmlId).val(datas.step11[htmlId]);
            }
            $("input[name='step1196'][value='" + datas.step11.step1196 + "']").attr("checked", true);

            if (datas.step11.doc) {
                docArr = datas.step11.doc.split(';').filter(function (item) {
                    return item != '';
                });
                for (var i in docArr) {
                    infoList.push({
                        url: '@Url.Content("~/File/DeleteFile?fileModule=2&filePath=")' + docArr[i]
                    });
                }
                step11Doc = datas.step11.doc;
            }

            $("#CA01").attr("checked", datas.step11.step1101);
            $("#CA02").attr("checked", datas.step11.step1102);
            $("#CA03").attr("checked", datas.step11.step1103);
            $("#CA04").attr("checked", datas.step11.step1104);
        }
        $("#step11doc").fileinput({
                language: 'zh',
                showClose: false,
                uploadUrl: '@Url.Content("~/File/UploadFile?fileModule=2")',
                overwriteInitial: false,
                initialPreviewAsData: true,
                initialPreview: docArr,
                initialPreviewConfig: infoList
            }).on('fileuploaded', function (event, data) {
                step11Doc += data.response.Result + ';';
            }).on('filedeleted', function (event, key, data) {
                step11Doc = step11Doc.replace(data.responseJSON.Result + ';', '');
            });
        bindGrid11Event();
    }

    function bindGrid11Event() {
        $("input[name='CA11']").on("blur", function () {
            var val = Number(this.value.replace(/[^\d.]/g, '')).toFixed(0);
            var numArr = new Array();
            for (var i = 0; i < 3; i++) {
                var value = $("#step11" + (1 + i * 4)).val();
                if (value) {
                    numArr.push(value);
                }
            }
            if (numArr.length > 0) {
                $("#step1113").val(getmean(numArr).toFixed(0));
            } else {
                $("#step1113").val('');
            }
            if (this.value) {
                this.value = val;
            }
            getGrid11Val(1);
        });

        $("input[name='CA12']").on("blur", function () {
            var val = Number(this.value.replace(/[^\d.]/g, '')).toFixed(0);
            var numArr = new Array();
            for (var i = 0; i < 3; i++) {
                var value = $("#step11" + (2 + i * 4)).val();
                if (value) {
                    numArr.push(value);
                }
            }
            if (numArr.length > 0) {
                $("#step1114").val(getmean(numArr).toFixed(0));
            } else {
                $("#step1114").val('');
            }
            if (this.value) {
                this.value = val;
            }
            getGrid11Val(2);
        });

        $("input[name='CA13']").on("blur", function () {
            var val = Number(this.value.replace(/[^\d.]/g, '')).toFixed(0);
            var numArr = new Array();
            for (var i = 0; i < 3; i++) {
                var value = $("#step11" + (3 + i * 4)).val();
                if (value) {
                    numArr.push(value);
                }
            }
            if (numArr.length > 0) {
                $("#step1115").val(getmean(numArr).toFixed(0));
            } else {
                $("#step1115").val('');
            }
            if (this.value) {
                this.value = val;
            }
            getGrid11Val(3);
        });

        $("input[name='CA14']").on("blur", function () {
            var val = Number(this.value.replace(/[^\d.]/g, '')).toFixed(0);
            var numArr = new Array();
            for (var i = 0; i < 3; i++) {
                var value = $("#step11" + (4 + i * 4)).val();
                if (value) {
                    numArr.push(value);
                }
            }
            if (numArr.length > 0) {
                $("#step1116").val(getmean(numArr).toFixed(0));
            } else {
                $("#step1116").val('');
            }
            if (this.value) {
                this.value = val;
            }
            getGrid11Val(4);
        });

        $("input[name='CA21']").on("blur", function () {
            var val = Number(this.value.replace(/[^\d.]/g, '')).toFixed(0);
            var numArr = new Array();
            for (var i = 0; i < 3; i++) {
                var value = $("#step11" + (17 + i * 4)).val();
                if (value) {
                    numArr.push(value);
                }
            }
            if (numArr.length > 0) {
                $("#step1129").val(getmean(numArr).toFixed(0));
            } else {
                $("#step1129").val('');
            }
            if (this.value) {
                this.value = val;
            }
            getGrid11Val(1);
        });

        $("input[name='CA22']").on("blur", function () {
            var val = Number(this.value.replace(/[^\d.]/g, '')).toFixed(0);
            var numArr = new Array();
            for (var i = 0; i < 3; i++) {
                var value = $("#step11" + (18 + i * 4)).val();
                if (value) {
                    numArr.push(value);
                }
            }
            if (numArr.length > 0) {
                $("#step1130").val(getmean(numArr).toFixed(0));
            } else {
                $("#step1130").val('');
            }
            if (this.value) {
            this.value = val;
            }
            getGrid11Val(2);
        });

        $("input[name='CA23']").on("blur", function () {
            var val = Number(this.value.replace(/[^\d.]/g, '')).toFixed(0);
            var numArr = new Array();
            for (var i = 0; i < 3; i++) {
                var value = $("#step11" + (19 + i * 4)).val();
                if (value) {
                    numArr.push(value);
                }
            }
            if (numArr.length > 0) {
                $("#step1131").val(getmean(numArr).toFixed(0));
            } else {
                $("#step1131").val('');
            }
            if (this.value) {
            this.value = val;
            }
            getGrid11Val(3);
        });

        $("input[name='CA24']").on("blur", function () {
            var val = Number(this.value.replace(/[^\d.]/g, '')).toFixed(0);
            var numArr = new Array();
            for (var i = 0; i < 3; i++) {
                var value = $("#step11" + (20 + i * 4)).val();
                if (value) {
                    numArr.push(value);
                }
            }
            if (numArr.length > 0) {
                $("#step1132").val(getmean(numArr).toFixed(0));
            } else {
                $("#step1132").val('');
            }
            if (this.value) {
            this.value = val;
            }
            getGrid11Val(4);
        });

        $("input[name='CA31']").on("blur", function () {
            var val = Number(this.value.replace(/[^\d.]/g, '')).toFixed(0);
            var numArr = new Array();
            for (var i = 0; i < 3; i++) {
                var value = $("#step11" + (33 + i * 4)).val();
                if (value) {
                    numArr.push(value);
                }
            }
            if (numArr.length > 0) {
                $("#step1145").val(getmean(numArr).toFixed(0));
            } else {
                $("#step1145").val('');
            }
            if (this.value) {
            this.value = val;
            }
            getGrid11Val(1);
        });

        $("input[name='CA32']").on("blur", function () {
            var val = Number(this.value.replace(/[^\d.]/g, '')).toFixed(0)
            var numArr = new Array();
            for (var i = 0; i < 3; i++) {
                var value = $("#step11" + (34 + i * 4)).val();
                if (value) {
                    numArr.push(value);
                }
            }
            if (numArr.length > 0) {
                $("#step1146").val(getmean(numArr).toFixed(0));
            } else {
                $("#step1146").val('');
            }
            if (this.value) {
            this.value = val;
            }
            getGrid11Val(2);
        });

        $("input[name='CA33']").on("blur", function () {
            var val = Number(this.value.replace(/[^\d.]/g, '')).toFixed(0)
            var numArr = new Array();
            for (var i = 0; i < 3; i++) {
                var value = $("#step11" + (35 + i * 4)).val();
                if (value) {
                    numArr.push(value);
                }
            }
            if (numArr.length > 0) {
                $("#step1147").val(getmean(numArr).toFixed(0));
            } else {
                $("#step1147").val('');
            }
            if (this.value) {
            this.value = val;
            }
            getGrid11Val(3);
        });

        $("input[name='CA34']").on("blur", function () {
            var val = Number(this.value.replace(/[^\d.]/g, '')).toFixed(0)
            var numArr = new Array();
            for (var i = 0; i < 3; i++) {
                var value = $("#step11" + (36 + i * 4)).val();
                if (value) {
                    numArr.push(value);
                }
            }
            if (numArr.length > 0) {
                $("#step1148").val(getmean(numArr).toFixed(0));
            } else {
                $("#step1148").val('');
            }
            if (this.value) {
            this.value = val;
            }
            getGrid11Val(4);
        });

        $("input[name='CA41']").on("blur", function () {
            var val = Number(this.value.replace(/[^\d.]/g, '')).toFixed(0)
            var numArr = new Array();
            for (var i = 0; i < 3; i++) {
                var value = $("#step11" + (49 + i * 4)).val();
                if (value) {
                    numArr.push(value);
                }
            }
            if (numArr.length > 0) {
                $("#step1161").val(getmean(numArr).toFixed(0));
            } else {
                $("#step1161").val('');
            }
            if (this.value) {
            this.value = val;
            }
            getGrid11Val(1);
        });

        $("input[name='CA42']").on("blur", function () {
            var val = Number(this.value.replace(/[^\d.]/g, '')).toFixed(0)
            var numArr = new Array();
            for (var i = 0; i < 3; i++) {
                var value = $("#step11" + (50 + i * 4)).val();
                if (value) {
                    numArr.push(value);
                }
            }
            if (numArr.length > 0) {
                $("#step1162").val(getmean(numArr).toFixed(0));
            } else {
                $("#step1162").val('');
            }
            if (this.value) {
            this.value = val;
            }
            getGrid11Val(2);
        });

        $("input[name='CA43']").on("blur", function () {
            var val = Number(this.value.replace(/[^\d.]/g, '')).toFixed(0)
            var numArr = new Array();
            for (var i = 0; i < 3; i++) {
                var value = $("#step11" + (51 + i * 4)).val();
                if (value) {
                    numArr.push(value);
                }
            }
            if (numArr.length > 0) {
                $("#step1163").val(getmean(numArr).toFixed(0));
            } else {
                $("#step1163").val('');
            }
            if (this.value) {
            this.value = val;
            }
            getGrid11Val(3);
        });

        $("input[name='CA44']").on("blur", function () {
            var val = Number(this.value.replace(/[^\d.]/g, '')).toFixed(0)
            var numArr = new Array();
            for (var i = 0; i < 3; i++) {
                var value = $("#step11" + (52 + i * 4)).val();
                if (value) {
                    numArr.push(value);
                }
            }
            if (numArr.length > 0) {
                $("#step1164").val(getmean(numArr).toFixed(0));
            } else {
                $("#step1164").val('');
            }
            if (this.value) {
            this.value = val;
            }
            getGrid11Val(4);
        });

        $("input[name='CA51']").on("blur", function () {
            var val = Number(this.value.replace(/[^\d.]/g, '')).toFixed(0)
            var numArr = new Array();
            for (var i = 0; i < 3; i++) {
                var value = $("#step11" + (65 + i * 4)).val();
                if (value) {
                    numArr.push(value);
                }
            }
            if (numArr.length > 0) {
                $("#step1177").val(getmean(numArr).toFixed(0));
            } else {
                $("#step1177").val('');
            }
            if (this.value) {
            this.value = val;
            }
            getGrid11Val(1);
        });

        $("input[name='CA52']").on("blur", function () {
            var val = Number(this.value.replace(/[^\d.]/g, '')).toFixed(0)
            var numArr = new Array();
            for (var i = 0; i < 3; i++) {
                var value = $("#step11" + (66 + i * 4)).val();
                if (value) {
                    numArr.push(value);
                }
            }
            if (numArr.length > 0) {
                $("#step1178").val(getmean(numArr).toFixed(0));
            } else {
                $("#step1178").val('');
            }
            if (this.value) {
            this.value = val;
            }
            getGrid11Val(2);
        });

        $("input[name='CA53']").on("blur", function () {
            var val = Number(this.value.replace(/[^\d.]/g, '')).toFixed(0)
            var numArr = new Array();
            for (var i = 0; i < 3; i++) {
                var value = $("#step11" + (67 + i * 4)).val();
                if (value) {
                    numArr.push(value);
                }
            }
            if (numArr.length > 0) {
                $("#step1179").val(getmean(numArr).toFixed(0));
            } else {
                $("#step1179").val('');
            }
            if (this.value) {
            this.value = val;
            }
            getGrid11Val(3);
        });

        $("input[name='CA54']").on("blur", function () {
            var val = Number(this.value.replace(/[^\d.]/g, '')).toFixed(0)
            var numArr = new Array();
            for (var i = 0; i < 3; i++) {
                var value = $("#step11" + (68 + i * 4)).val();
                if (value) {
                    numArr.push(value);
                }
            }
            if (numArr.length > 0) {
                $("#step1180").val(getmean(numArr).toFixed(0));
            } else {
                $("#step1180").val('');
            }
            if (this.value) {
            this.value = val;
            }
            getGrid11Val(4);
        });
    }

    function getGrid11Val(i) {
        var numArr = new Array();
        for (var j = 0; j < 5; j++) {
            var value = $("#step11" + (12 + 16 * j + i)).val();
            if (value) {
                numArr.push(value);
            }
        }
        if (numArr.length > 0) {
            var m = getmean(numArr).toFixed(0);
            var se = getstddev(numArr).toFixed(0);
            var ucl = (Number(m) + 2.13 * se).toFixed(0);
            $("#step11" + (80 + i)).val(m);
            $("#step11" + (84 + i)).val(se);
            $("#step11" + (88 + i)).val(ucl);
        } else {
            $("#step11" + (80 + i)).val('');
            $("#step11" + (84 + i)).val('');
            $("#step11" + (88 + i)).val('');
        }
    }

    function bindGrid12() {
        var docArr = [];
        var infoList = [];
        if (datas.step12) {
            for (var i = 1; i < 7; i++) {
                var htmlId = "step12" + i;
                $("#" + htmlId).val(datas.step12[htmlId]);
            }
            laydate.render({
                elem: '#step127', format: 'yyyy-MM-dd HH:mm:ss', type: 'datetime', value: datas.step12["step127"],
                done: function (value) {
                    var cstr = Date.parse(value);
                    var cend = Date.parse($("#step128").val());
                    if (cend) {
                        var ch = ((cend - cstr) / (3600 * 1000)).toFixed(2);
                        $("#step129").val(ch + "小时");
                    }
                }
            });
            laydate.render({
                elem: '#step128', format: 'yyyy-MM-dd HH:mm:ss', type: 'datetime', value: datas.step12["step128"],
                done: function (value) {
                    var cstr = Date.parse($("#step127").val());
                    var cend = Date.parse(value);
                    if (cstr) {
                        var ch = ((cend - cstr) / (3600 * 1000)).toFixed(2);
                        $("#step129").val(ch + "小时");
                    }
                }
            });
            $("#step129").val(datas.step12["step129"]);
            $("#step1210").val(datas.step12["step1210"]);
            laydate.render({
                elem: '#step1211', format: 'yyyy-MM-dd HH:mm:ss', type: 'datetime', value: datas.step12["step1211"],
                done: function (value) {
                    var cstr = Date.parse(value);
                    var cend = Date.parse($("#step1212").val());
                    if (cend) {
                        var ch = ((cend - cstr) / (3600 * 1000)).toFixed(2);
                        $("#step1213").val(ch + "小时");
                    }
                }
            });
            laydate.render({
                elem: '#step1212', format: 'yyyy-MM-dd HH:mm:ss', type: 'datetime', value: datas.step12["step1212"],
                done: function (value) {
                    var cstr = Date.parse($("#step1211").val());
                    var cend = Date.parse(value);
                    if (cstr) {
                        var ch = ((cend - cstr) / (3600 * 1000)).toFixed(2);
                        $("#step1213").val(ch + "小时");
                    }
                }
            });
            $("#step1213").val(datas.step12["step1213"]);
            $("#step1214").val(datas.step12["step1214"]);
            $("input[name='step1215'][value='" + datas.step12.step1215 + "']").attr("checked", true);
            if (datas.step12.doc) {
                docArr = datas.step12.doc.split(';').filter(function (item) {
                    return item != '';
                });
                for (var i in docArr) {
                    infoList.push({
                        url: '@Url.Content("~/File/DeleteFile?fileModule=2&filePath=")' + docArr[i]
                    });
                }
                step12Doc = datas.step12.doc;
            }
        }

        $("#step12doc").fileinput({
            language: 'zh',
            showClose: false,
            uploadUrl: '@Url.Content("~/File/UploadFile?fileModule=2")',
            overwriteInitial: false,
            initialPreviewAsData: true,
            initialPreview: docArr,
            initialPreviewConfig: infoList
        }).on('fileuploaded', function (event, data) {
            step12Doc += data.response.Result + ';';
        }).on('filedeleted', function (event, key, data) {
            step12Doc = step12Doc.replace(data.responseJSON.Result + ';', '');
        });
        bindGrid12Event();
    }

    function bindGrid12Event() {
        $("input[name='WSW']").on("blur", function () {
            if (this.value) {
                var val = Number(this.value.replace(/[^\d.]/g, '')).toFixed(0)
                this.value = val;
                var numArr = new Array();
                for (var i = 1; i < 6; i++) {
                    var value = $("#step12" + i).val();
                    if (value) {
                        numArr.push(value);
                    }
                }
                if (numArr.length > 0) {
                    $("#step126").val(getmean(numArr).toFixed(0));
                } else {
                    $("#step126").val('');
                }
            }
        });
    }

    function saveExperimentData(status) {
        flow.Remark = '';
        var postData = $('#baseForm').getWebControls({ Id: id });
        var basic = saveBasic(postData, status);
        if (!basic) {
            return;
        }
        saveDevice(postData);
        saveStep3(postData);
        saveStep4(postData);
        saveStep5(postData);
        saveStep6(postData);
        saveStep8(postData);
        saveStep9(postData);
        saveStep10(postData);
        saveStep11(postData);
        saveStep12(postData);
        postData.Datas = JSON.stringify(datas);
        postData.Step = $("#step").ysCheckBox("getValue");
        if (postData.Id == 0 && postData.Status == 0) {
            flow.Remark = "新增了原始数据";
        } else if (postData.Status == 1) {
            flow.Remark = "原始数据被提交了";
        } else if (postData.Status == 3) {
            flow.Remark = "原始数据被审核通过了";
        } else if (postData.Status == 2) {
            flow.Remark = "原始数据被审核拒绝了";
        } else if (postData.Status == 4) {
            flow.Remark = "原始数据被批准了";
        } else if (postData.Status == 5) {
            flow.Remark = "原始数据被批准拒绝了";
        }
        ys.ajax({
            url: '@Url.Content("~/ExperimentManage/ExperimentData/SaveFormJson")',
            type: 'post',
            data: postData,
            success: function (obj) {
                if (obj.Tag == 1) {
                    flow.ExperimentDataId = obj.Result;
                    ys.ajax({
                        url: '@Url.Content("~/ExperimentManage/ExperimentFlow/SaveFormJson")',
                        type: 'post',
                        data: flow,
                        success: function (obj) {
                            if (obj.Tag == 1) {
                                ys.msgSuccess(obj.Message);
                                location.href = '@Url.Content("~/ExperimentManage/ExperimentData/ExperimentCleanForm")' + '?id=' + flow.ExperimentDataId;
                            }
                            else {
                                ys.msgError(obj.Message);
                            }
                        }
                    });
                }
                else {
                    ys.msgError(obj.Message);
                }
            }
        });
    }

    function saveBasic(postData, status) {
        postData.ExperimentType = "洁净工作台";
        postData.Status = status;
        flow.Status = status;
        if (!exp.OwnerIds) {
            postData.OwnerIds = userId;
        }
        if (flow.Status == 2 || flow.Status == 3) {
            postData.ReviewIds = userId;
        }
        if (flow.Status == 4) {
            postData.ConfirmIds = userId;
        }
        if (!postData.DeviceNo) {
            alert("请选择设备编号");
            return false;
        }
        if (postData.Id != 0 && (datas.CustomModel || $("#customModel").val()) && datas.CustomModel != $("#customModel").val()) {
            flow.Remark += "规格型号由 '" + datas.CustomModel + "' 变为 '" + $("#customModel").val() + "';<br />";
        }
        datas.CustomModel = $("#customModel").val();
        if (postData.Id != 0 && (datas.DeviceName || $("#deviceName").val()) && datas.DeviceName != $("#deviceName").val()) {
            flow.Remark += "设备名称由 '" + datas.DeviceName + "' 变为 '" + $("#deviceName").val() + "';<br />";
        }
        datas.DeviceName = $("#deviceName").val();
        if (postData.Id != 0 && (datas.MadeFactory || $("#madeFactory").val()) && datas.MadeFactory != $("#madeFactory").val()) {
            flow.Remark += "生产厂家由 '" + datas.MadeFactory + "' 变为 '" + $("#madeFactory").val() + "';<br />";
        }
        datas.MadeFactory = $("#madeFactory").val();
        if (postData.Id != 0 && (datas.Temp || $("#temp").val()) && datas.Temp != $("#temp").val()) {
            flow.Remark += "温度由 '" + datas.Temp + "' 变为 '" + $("#temp").val() + "';<br />";
        }
        datas.Temp = $("#temp").val();
        if (postData.Id != 0 && (datas.TestPath || $("#testPath").val()) && datas.TestPath != $("#testPath").val()) {
            flow.Remark += "检验检测地点由 '" + datas.TestPath + "' 变为 '" + $("#testPath").val() + "';<br />";
        }
        datas.TestPath = $("#testPath").val();
        if (postData.Id != 0 && (datas.Humidity || $("#humidity").val()) && datas.Humidity != $("#humidity").val()) {
            flow.Remark += "湿度由 '" + datas.Humidity + "' 变为 '" + $("#humidity").val() + "';<br />";
        }
        datas.Humidity = $("#humidity").val();
        datas.YiJu1 = $("#yiJu1").prop("checked");
        datas.YiJu2 = $("#yiJu2").prop("checked");
        return true;
    }

    function saveDevice(postData) {
        for (var i in datas.DeviceType) {
            if (postData.Id != 0 && (datas.DeviceType[i].DeviceNO || $("#deviceNo" + i).ysComboBox("getValue")) &&
                datas.DeviceType[i].DeviceNO != $("#deviceNo" + i).ysComboBox("getValue")) {
                flow.Remark += datas.DeviceType[i].DeviceName + "的编号由 '"
                    + datas.DeviceType[i].DeviceNO + "' 变为 '" + $("#deviceNo" + i).ysComboBox("getValue") + "';<br />";
            }
            datas.DeviceType[i].DeviceNO = $("#deviceNo" + i).ysComboBox("getValue");
            if (postData.Id != 0 && datas.DeviceType[i].IsMustDevice != $("#deviceNeed" + i).is(":checked")) {
                flow.Remark += datas.DeviceType[i].DeviceName + "由 '"
                    + (datas.DeviceType[i].IsMustDevice ? "勾选" : "不勾选")
                    + "' 变为 '" + ($("#deviceNeed" + i).is(":checked") ? "勾选" : "不勾选") + "';<br />";
            }
            datas.DeviceType[i].IsMustDevice = $("#deviceNeed" + i).is(":checked");
        }
    }

    function saveStep3(postData) {
        if (postData.Id == 0) {
            datas.step3 = {};
        }
        if (postData.Id != 0 && datas.step3.step31 != $("input[name='step31']:checked").val()) {
            flow.Remark += "箱体表面、工作区侧壁及台面无明显划伤、压痕，表面光洁，外形平整，表面涂层无龟裂起翘、起泡、脱落、流挂由 '"
                + (datas.step3.step31 ? datas.step3.step31 : "") + "' 变为 '" + $("input[name='step31']:checked").val() + "';<br />";
        }
        datas.step3.step31 = $("input[name='step31']:checked").val();
        if (postData.Id != 0 && datas.step3.step32 != $("input[name='step32']:checked").val()) {
            flow.Remark += "零部件表面光洁，无锈蚀氧化、压痕、无锐边、无明显毛刺由 '"
                + (datas.step3.step32 ? datas.step3.step32 : "") + "' 变为 '" + $("input[name='step32']:checked").val() + "';<br />";
        }
        datas.step3.step32 = $("input[name='step32']:checked").val();
        if (postData.Id != 0 && datas.step3.step33 != $("input[name='step33']:checked").val()) {
            flow.Remark += "说明功能的文字和图形符号标志正确、清晰、端正、牢固由 '"
                + (datas.step3.step33 ? datas.step3.step33 : "") + "' 变为 '" + $("input[name='step33']:checked").val() + "';<br />";
        }
        datas.step3.step33 = $("input[name='step33']:checked").val();
        if (postData.Id != 0 && (datas.step3.step34 || $("#step34").val()) && datas.step3.step34 != $("#step34").val()) {
            flow.Remark += "备注由 '" + datas.step3.step34 + "' 变为 '" + $("#step34").val() + "';<br />";
        }
        datas.step3.step34 = $("#step34").val();
        if (postData.Id != 0 && datas.step3.step35 != $("input[name='step35']:checked").val()) {
            flow.Remark += "单项判定由 '"
                + (datas.step3.step35 ? datas.step3.step35 : "") + "' 变为 '" + $("input[name='step35']:checked").val() + "';<br />";
        }
        datas.step3.step35 = $("input[name='step35']:checked").val();
        if (postData.Id != 0 && datas.step3.step36 != $("input[name='step36']:checked").val()) {
            flow.Remark += "机箱焊接牢固，焊接表面光滑由 '"
                + (datas.step3.step36 ? datas.step3.step36 : "") + "' 变为 '" + $("input[name='step36']:checked").val() + "';<br />";
        }
        datas.step3.step36 = $("input[name='step36']:checked").val();
    }

    function saveStep4(postData) {
        if (postData.Id == 0) {
            datas.step4 = {};
        }
        if (postData.Id != 0 && (datas.step4.step42 || $("#step42").val()) && datas.step4.step42 != $("#step42").val()) {
            flow.Remark += "上游浓度（μg/L）由 '" + datas.step4.step42 + "' 变为 '" + $("#step42").val() + "';<br />";
        }
        datas.step4.step42 = $("#step42").val();
        if (postData.Id != 0 && (datas.step4.step43 || $("#step43").val()) && datas.step4.step43 != $("#step43").val()) {
            flow.Remark += "送风过滤器漏过率（%）由 '" + datas.step4.step43 + "' 变为 '" + $("#step43").val() + "';<br />";
        }
        datas.step4.step43 = $("#step43").val();
        if (postData.Id != 0 && (datas.step4.step45 || $("#step45").val()) && datas.step4.step45 != $("#step45").val()) {
            flow.Remark += "备注由 '" + datas.step4.step45 + "' 变为 '" + $("#step45").val() + "';<br />";
        }
        datas.step4.step45 = $("#step45").val();
        if (postData.Id != 0 && datas.step4.step46 != $("input[name='step46']:checked").val()) {
            flow.Remark += "柜体表面无明显划伤、锈斑、压痕，表面光洁，外形平整由 '"
                + (datas.step4.step46 ? datas.step4.step46 : "")  + "' 变为 '" + $("input[name='step46']:checked").val() + "';<br />";
        }
        datas.step4.step46 = $("input[name='step46']:checked").val();
    }

    function saveStep5(postData) {
        if (postData.Id == 0) {
            datas.step5 = {};
        }
        if (postData.Id != 0 && datas.step5.step50 != $("input[name='step50']:checked").val()) {
            flow.Remark += "工作台类型由 '"
                + (datas.step5.step50 ? datas.step5.step50 : "") + "' 变为 '" + $("input[name='step50']:checked").val() + "';<br />";
        }
        datas.step5.step50 = $("input[name='step50']:checked").val();
        if (postData.Id != 0 && datas.step5.step51 != $("input[name='step51']:checked").val()) {
            flow.Remark += "下降气流由 '"
                + (datas.step5.step51 ? datas.step5.step51 : "") + "' 变为 '" + $("input[name='step51']:checked").val() + "';<br />";
        }
        datas.step5.step51 = $("input[name='step51']:checked").val();
        if (postData.Id != 0 && datas.step5.step52 != $("input[name='step52']:checked").val()) {
            flow.Remark += "观察窗气流由 '"
                + (datas.step5.step52 ? datas.step5.step52 : "") + "' 变为 '" + $("input[name='step52']:checked").val() + "';<br />";
        }
        datas.step5.step52 = $("input[name='step52']:checked").val();
        if (postData.Id != 0 && datas.step5.step53 != $("input[name='step53']:checked").val()) {
            flow.Remark += "前窗操作口边缘气流由 '"
                + (datas.step5.step53 ? datas.step5.step53 : "") + "' 变为 '" + $("input[name='step53']:checked").val() + "';<br />";
        }
        datas.step5.step53 = $("input[name='step53']:checked").val();
        if (postData.Id != 0 && datas.step5.step54 != $("input[name='step54']:checked").val()) {
            flow.Remark += "滑动窗密闭性测试由 '"
                + (datas.step5.step54 ? datas.step5.step54 : "") + "' 变为 '" + $("input[name='step54']:checked").val() + "';<br />";
        }
        datas.step5.step54 = $("input[name='step54']:checked").val();
        if (postData.Id != 0 && (datas.step5.step55 || $("#step55").val()) && datas.step5.step55 != $("#step55").val()) {
            flow.Remark += "备注由 '" + datas.step5.step55 + "' 变为 '" + $("#step55").val() + "';<br />";
        }
        datas.step5.step55 = $("#step55").val();
        if (postData.Id != 0 && datas.step5.step56 != $("input[name='step56']:checked").val()) {
            flow.Remark += "单项判定由 '"
                + (datas.step5.step56 ? datas.step5.step56 : "") + "' 变为 '" + $("input[name='step56']:checked").val() + "';<br />";
        }
        datas.step5.step56 = $("input[name='step56']:checked").val();
    }

    function saveStep6(postData) {
        if (postData.Id == 0) {
            datas.step6 = {};
        }
        for (var i = 1; i < 14; i++) {
            for (var j = 1; j < 5; j++) {
                var htmlId = "step6" + i + j;
                if (postData.Id != 0 && (datas.step6[htmlId] || $("#" + htmlId).val())
                    && datas.step6[htmlId] != $("#" + htmlId).val()) {
                    var fName = '';
                    switch (j) {
                        case 1: fName = "I" + (i == 13 ? "实测值" : i); break;
                        case 2: fName = "M" + (i == 13 ? "实测值" : i); break;
                        case 3: fName = "E" + (i == 13 ? "实测值" : i); break;
                        case 4: fName = "EX" + (i == 13 ? "实测值" : i); break;
                    }
                    flow.Remark += fName + "由 '" + datas.step6[htmlId] + "' 变为 '" + $("#" + htmlId).val() + "';<br />";
                }
                datas.step6[htmlId] = $("#" + htmlId).val();
            }
        }
        if (postData.Id != 0 && (datas.step6.step6142 || $("#step6142").val())  && datas.step6.step6142 != $("#step6142").val()) {
            flow.Remark += "工作区长度L（±5mm）*由 '" + datas.step6.step6142 + "' 变为 '" + $("#step6142").val() + "';<br />";
        }
        datas.step6.step6142 = $("#step6142").val();
        if (postData.Id != 0 && (datas.step6.step6151 || $("#step6151").val())  && datas.step6.step6151 != $("#step6151").val()) {
            flow.Remark += "实测下降气流平均流速  (m/s)由 '" + datas.step6.step6151 + "' 变为 '" + $("#step6151").val() + "';<br />";
        }
        datas.step6.step6151 = $("#step6151").val();
        if (postData.Id != 0 && (datas.step6.step6171 || $("#step6171").val())  && datas.step6.step6171 != $("#step6171").val()) {
            flow.Remark += "各点实测值与平均流速最大差值DVd%(%) 由 '" + datas.step6.step6171 + "' 变为 '" + $("#step6171").val() + "';<br />";
        }
        datas.step6.step6171 = $("#step6171").val();
        if (postData.Id != 0 && (datas.step6.step6181 || $("#step6181").val()) && datas.step6.step6181 != $("#step6181").val()) {
            flow.Remark += "备注由 '" + datas.step6.step6181 + "' 变为 '" + $("#step6181").val() + "';<br />";
        }
        datas.step6.step6181 = $("#step6181").val();
        if (postData.Id != 0 && datas.step6.step6191 != $("input[name='step6191']:checked").val()) {
            flow.Remark += "单项判定由 '"
                + (datas.step6.step6191 ? datas.step6.step6191 : "") + "' 变为 '" + $("input[name='step6191']:checked").val() + "';<br />";
        }
        datas.step6.step6191 = $("input[name='step6191']:checked").val();
        if (postData.Id != 0 && datas.step6.step60 != $("input[name='step60']:checked").val()) {
            flow.Remark += "单项判定由 '"
                + (datas.step6.step60 ? datas.step6.step60 : "") + "' 变为 '" + $("input[name='step60']:checked").val() + "';<br />";
        }
        datas.step6.step60 = $("input[name='step60']:checked").val();
    }

    function saveStep8(postData) {
        if (postData.Id == 0) {
            datas.step8 = {};
        }
        if (postData.Id != 0 && (datas.step8.step81 || $("#step81").val()) && datas.step8.step81 != $("#step81").val()) {
            flow.Remark += "噪声实测值N 由 '" + datas.step8.step81 + "' 变为 '" + $("#step81").val() + "';<br />";
        }
        datas.step8.step81 = $("#step81").val();
        if (postData.Id != 0 && (datas.step8.step82 || $("#step82").val()) && datas.step8.step82 != $("#step82").val()) {
            flow.Remark += "背景噪声实测值Nb 由 '" + datas.step8.step82 + "' 变为 '" + $("#step82").val() + "';<br />";
        }
        datas.step8.step82 = $("#step82").val();
        if (postData.Id != 0 && (datas.step8.step83 || $("#step83").val()) && datas.step8.step83 != $("#step83").val()) {
            flow.Remark += "修正后噪声值Nx 由 '" + datas.step8.step83 + "' 变为 '" + $("#step83").val() + "';<br />";
        }
        datas.step8.step83 = $("#step83").val();
        if (postData.Id != 0 && (datas.step8.step84 || $("#step84").val()) && datas.step8.step84 != $("#step84").val()) {
            flow.Remark += "备注由 '" + datas.step8.step84 + "' 变为 '" + $("#step84").val() + "';<br />";
        }
        datas.step8.step84 = $("#step84").val();
        if (postData.Id != 0 && datas.step8.step85 != $("input[name='step85']:checked").val()) {
            flow.Remark += "单项判定由 '"
                + (datas.step8.step85 ? datas.step8.step85 : "") + "' 变为 '" + $("input[name='step85']:checked").val() + "';<br />";
        }
        datas.step8.step85 = $("input[name='step85']:checked").val();
    }

    function saveStep9(postData) {
        if (postData.Id == 0) {
            datas.step9 = {};
        }
        for (var i = 9; i < 16; i++) {
            var htmlId = "step9" + i;
            if (postData.Id != 0 && (datas.step9[htmlId] || $("#" + htmlId).val())
                && datas.step9[htmlId] != $("#" + htmlId).val()) {
                flow.Remark += "L" + i + "由 '" + datas.step9[htmlId] + "' 变为 '" + $("#" + htmlId).val() + "';<br />";
            }
            datas.step9[htmlId] = $("#" + htmlId).val();
        }
        if (postData.Id != 0 && (datas.step9.step916 || $("#step916").val()) && datas.step9.step916 != $("#step916").val()) {
            flow.Remark += "平均照度L由 '" + datas.step9.step916 + "' 变为 '" + $("#step916").val() + "';<br />";
        }
        datas.step9.step916 = $("#step916").val();
        if (postData.Id != 0 && (datas.step9.step918 || $("#step918").val()) && datas.step9.step918 != $("#step918").val()) {
            flow.Remark += "备注由 '" + datas.step9.step918 + "' 变为 '" + $("#step918").val() + "';<br />";
        }
        datas.step9.step918 = $("#step918").val();
        if (postData.Id != 0 && datas.step9.step919 != $("input[name='step919']:checked").val()) {
            flow.Remark += "单项判定由 '"
                + (datas.step9.step919 ? datas.step9.step919 : "") + "' 变为 '" + $("input[name='step919']:checked").val() + "';<br />";
        }
        datas.step9.step919 = $("input[name='step919']:checked").val();
    }

    function saveStep10(postData) {
        if (postData.Id == 0) {
            datas.step10 = {};
        }
        for (var i = 1; i < 8; i++) {
            var htmlId = "step10" + i;
            if (postData.Id != 0 && (datas.step10[htmlId] || $("#" + htmlId).val())
                && datas.step10[htmlId] != $("#" + htmlId).val()) {
                flow.Remark += "UV" + i + "由 '" + datas.step10[htmlId] + "' 变为 '" + $("#" + htmlId).val() + "';<br />";
            }
            datas.step10[htmlId] = $("#" + htmlId).val();
        }
        if (postData.Id != 0 && (datas.step10.step108 || $("#step108").val()) && datas.step10.step108 != $("#step108").val()) {
            flow.Remark += "最小值UVMin由 '" + datas.step10.step108 + "' 变为 '" + $("#step108").val() + "';<br />";
        }
        datas.step10.step108 = $("#step108").val();
        if (postData.Id != 0 && (datas.step10.step109 || $("#step109").val()) && datas.step10.step109 != $("#step109").val()) {
            flow.Remark += "备注由 '" + datas.step10.step109 + "' 变为 '" + $("#step109").val() + "';<br />";
        }
        datas.step10.step109 = $("#step109").val();
        if (postData.Id != 0 && datas.step10.step1010 != $("input[name='step1010']:checked").val()) {
            flow.Remark += "单项判定由 '"
                + (datas.step10.step1010 ? datas.step10.step1010 : "") + "' 变为 '" + $("input[name='step1010']:checked").val() + "';<br />";
        }
        datas.step10.step1010 = $("input[name='step1010']:checked").val();
    }

    function saveStep11(postData) {
        if (postData.Id == 0) {
            datas.step11 = {};
        }
        for (var i = 0; i < 3; i++) {
            for (var j = 1; j < 5; j++) {
                var htmlId = "step11" + (j + i * 4);
                var trtext;
                if (postData.Id != 0 && (datas.step11[htmlId] || $("#" + htmlId).val())
                    && datas.step11[htmlId] != $("#" + htmlId).val()) {
                    switch (j) {
                        case 1:
                            trtext = "0.3μm";
                            break;
                        case 2:
                            trtext = "0.5μm";
                            break;
                        case 3:
                            trtext = "1.0μm";
                            break;
                        case 4:
                            trtext = "5.0μm";
                            break;
                    }
                    flow.Remark += "位置1C" + (i + 1) + trtext + "由 '" + datas.step11[htmlId] + "' 变为 '" + $("#" + htmlId).val() + "';<br />";
                }
                datas.step11[htmlId] = $("#" + htmlId).val();
            }
        }
        for (var j = 13; j < 17; j++) {
            var htmlId = "step11" + j;
            var trtext;
            if (postData.Id != 0 && (datas.step11[htmlId] || $("#" + htmlId).val())
                && datas.step11[htmlId] != $("#" + htmlId).val()) {
                switch (j) {
                    case 13:
                        trtext = "0.3μm";
                        break;
                    case 14:
                        trtext = "0.5μm";
                        break;
                    case 15:
                        trtext = "1.0μm";
                        break;
                    case 16:
                        trtext = "5.0μm";
                        break;
                }
                flow.Remark += "位置1平均值" + trtext + "由 '" + datas.step11[htmlId] + "' 变为 '" + $("#" + htmlId).val() + "';<br />";
            }
            datas.step11[htmlId] = $("#" + htmlId).val();
        }
        for (var i = 0; i < 3; i++) {
            for (var j = 17; j < 21; j++) {
                var htmlId = "step11" + (j + i * 4);
                var trtext;
                if (postData.Id != 0 && (datas.step11[htmlId] || $("#" + htmlId).val())
                    && datas.step11[htmlId] != $("#" + htmlId).val()) {
                    switch (j) {
                        case 17:
                            trtext = "0.3μm";
                            break;
                        case 18:
                            trtext = "0.5μm";
                            break;
                        case 19:
                            trtext = "1.0μm";
                            break;
                        case 20:
                            trtext = "5.0μm";
                            break;
                    }
                    flow.Remark += "位置2C" + (i + 1) + trtext + "由 '" + datas.step11[htmlId] + "' 变为 '" + $("#" + htmlId).val() + "';<br />";
                }
                datas.step11[htmlId] = $("#" + htmlId).val();
            }
        }
        for (var j = 29; j < 33; j++) {
            var htmlId = "step11" + j;
            var trtext;
            if (postData.Id != 0 && (datas.step11[htmlId] || $("#" + htmlId).val())
                && datas.step11[htmlId] != $("#" + htmlId).val()) {
                switch (j) {
                    case 29:
                        trtext = "0.3μm";
                        break;
                    case 30:
                        trtext = "0.5μm";
                        break;
                    case 31:
                        trtext = "1.0μm";
                        break;
                    case 32:
                        trtext = "5.0μm";
                        break;
                }
                flow.Remark += "位置2平均值" + trtext + "由 '" + datas.step11[htmlId] + "' 变为 '" + $("#" + htmlId).val() + "';<br />";
            }
            datas.step11[htmlId] = $("#" + htmlId).val();
        }
        for (var i = 0; i < 3; i++) {
            for (var j = 33; j < 37; j++) {
                var htmlId = "step11" + (j + i * 4);
                var trtext;
                if (postData.Id != 0 && (datas.step11[htmlId] || $("#" + htmlId).val())
                    && datas.step11[htmlId] != $("#" + htmlId).val()) {
                    switch (j) {
                        case 33:
                            trtext = "0.3μm";
                            break;
                        case 34:
                            trtext = "0.5μm";
                            break;
                        case 35:
                            trtext = "1.0μm";
                            break;
                        case 36:
                            trtext = "5.0μm";
                            break;
                    }
                    flow.Remark += "位置3C" + (i + 1) + trtext + "由 '" + datas.step11[htmlId] + "' 变为 '" + $("#" + htmlId).val() + "';<br />";
                }
                datas.step11[htmlId] = $("#" + htmlId).val();
            }
        }
        for (var j = 45; j < 49; j++) {
            var htmlId = "step11" + j;
            var trtext;
            if (postData.Id != 0 && (datas.step11[htmlId] || $("#" + htmlId).val())
                && datas.step11[htmlId] != $("#" + htmlId).val()) {
                switch (j) {
                    case 45:
                        trtext = "0.3μm";
                        break;
                    case 46:
                        trtext = "0.5μm";
                        break;
                    case 47:
                        trtext = "1.0μm";
                        break;
                    case 48:
                        trtext = "5.0μm";
                        break;
                }
                flow.Remark += "位置3平均值" + trtext + "由 '" + datas.step11[htmlId] + "' 变为 '" + $("#" + htmlId).val() + "';<br />";
            }
            datas.step11[htmlId] = $("#" + htmlId).val();
        }
        for (var i = 0; i < 3; i++) {
            for (var j = 49; j < 53; j++) {
                var htmlId = "step11" + (j + i * 4);
                var trtext;
                if (postData.Id != 0 && (datas.step11[htmlId] || $("#" + htmlId).val())
                    && datas.step11[htmlId] != $("#" + htmlId).val()) {
                    switch (j) {
                        case 49:
                            trtext = "0.3μm";
                            break;
                        case 50:
                            trtext = "0.5μm";
                            break;
                        case 51:
                            trtext = "1.0μm";
                            break;
                        case 52:
                            trtext = "5.0μm";
                            break;
                    }
                    flow.Remark += "位置4C" + (i + 1) + trtext + "由 '" + datas.step11[htmlId] + "' 变为 '" + $("#" + htmlId).val() + "';<br />";
                }
                datas.step11[htmlId] = $("#" + htmlId).val();
            }
        }
        for (var j = 61; j < 65; j++) {
            var htmlId = "step11" + j;
            var trtext;
            if (postData.Id != 0 && (datas.step11[htmlId] || $("#" + htmlId).val())
                && datas.step11[htmlId] != $("#" + htmlId).val()) {
                switch (j) {
                    case 61:
                        trtext = "0.3μm";
                        break;
                    case 62:
                        trtext = "0.5μm";
                        break;
                    case 63:
                        trtext = "1.0μm";
                        break;
                    case 64:
                        trtext = "5.0μm";
                        break;
                }
                flow.Remark += "位置4平均值" + trtext + "由 '" + datas.step11[htmlId] + "' 变为 '" + $("#" + htmlId).val() + "';<br />";
            }
            datas.step11[htmlId] = $("#" + htmlId).val();
        }
        for (var i = 0; i < 3; i++) {
            for (var j = 65; j < 69; j++) {
                var htmlId = "step11" + (j + i * 4);
                var trtext;
                if (postData.Id != 0 && (datas.step11[htmlId] || $("#" + htmlId).val())
                    && datas.step11[htmlId] != $("#" + htmlId).val()) {
                    switch (j) {
                        case 65:
                            trtext = "0.3μm";
                            break;
                        case 66:
                            trtext = "0.5μm";
                            break;
                        case 67:
                            trtext = "1.0μm";
                            break;
                        case 68:
                            trtext = "5.0μm";
                            break;
                    }
                    flow.Remark += "位置5C" + (i + 1) + trtext + "由 '" + datas.step11[htmlId] + "' 变为 '" + $("#" + htmlId).val() + "';<br />";
                }
                datas.step11[htmlId] = $("#" + htmlId).val();
            }
        }
        for (var j = 77; j < 81; j++) {
            var htmlId = "step11" + j;
            var trtext;
            if (postData.Id != 0 && (datas.step11[htmlId] || $("#" + htmlId).val())
                && datas.step11[htmlId] != $("#" + htmlId).val()) {
                switch (j) {
                    case 77:
                        trtext = "0.3μm";
                        break;
                    case 78:
                        trtext = "0.5μm";
                        break;
                    case 79:
                        trtext = "1.0μm";
                        break;
                    case 80:
                        trtext = "5.0μm";
                        break;
                }
                flow.Remark += "位置5平均值" + trtext + "由 '" + datas.step11[htmlId] + "' 变为 '" + $("#" + htmlId).val() + "';<br />";
            }
            datas.step11[htmlId] = $("#" + htmlId).val();
        }
        for (var j = 81; j < 85; j++) {
            var htmlId = "step11" + j;
            var trtext;
            if (postData.Id != 0 && (datas.step11[htmlId] || $("#" + htmlId).val())
                && datas.step11[htmlId] != $("#" + htmlId).val()) {
                switch (j) {
                    case 81:
                        trtext = "0.3μm";
                        break;
                    case 82:
                        trtext = "0.5μm";
                        break;
                    case 83:
                        trtext = "1.0μm";
                        break;
                    case 84:
                        trtext = "5.0μm";
                        break;
                }
                flow.Remark += "平均粒子浓度" + trtext + "由 '" + datas.step11[htmlId] + "' 变为 '" + $("#" + htmlId).val() + "';<br />";
            }
            datas.step11[htmlId] = $("#" + htmlId).val();
        }
        for (var j = 85; j < 89; j++) {
            var htmlId = "step11" + j;
            var trtext;
            if (postData.Id != 0 && (datas.step11[htmlId] || $("#" + htmlId).val())
                && datas.step11[htmlId] != $("#" + htmlId).val()) {
                switch (j) {
                    case 85:
                        trtext = "0.3μm";
                        break;
                    case 86:
                        trtext = "0.5μm";
                        break;
                    case 87:
                        trtext = "1.0μm";
                        break;
                    case 88:
                        trtext = "5.0μm";
                        break;
                }
                flow.Remark += "平均值均值的标准误差" + trtext + "由 '" + datas.step11[htmlId] + "' 变为 '" + $("#" + htmlId).val() + "';<br />";
            }
            datas.step11[htmlId] = $("#" + htmlId).val();
        }
        for (var j = 89; j < 93; j++) {
            var htmlId = "step11" + j;
            var trtext;
            if (postData.Id != 0 && (datas.step11[htmlId] || $("#" + htmlId).val())
                && datas.step11[htmlId] != $("#" + htmlId).val()) {
                switch (j) {
                    case 89:
                        trtext = "0.3μm";
                        break;
                    case 90:
                        trtext = "0.5μm";
                        break;
                    case 91:
                        trtext = "1.0μm";
                        break;
                    case 92:
                        trtext = "5.0μm";
                        break;
                }
                flow.Remark += "95%置信上限UCL值" + trtext + "由 '" + datas.step11[htmlId] + "' 变为 '" + $("#" + htmlId).val() + "';<br />";
            }
            datas.step11[htmlId] = $("#" + htmlId).val();
        }
        if (postData.Id != 0 && (datas.step11.step1193 || $("#step1193").val()) && datas.step11.step1193 != $("#step1193").val()) {
            flow.Remark += "单次采样量由 '" + datas.step11.step1193 + "' 变为 '" + $("#step1193").val() + "';<br />";
        }
        datas.step11.step1193 = $("#step1193").val();
        if (postData.Id != 0 && (datas.step11.step1194 || $("#step1194").val()) && datas.step11.step1194 != $("#step1194").val()) {
            flow.Remark += "洁净度等级由 '" + datas.step11.step1194 + "' 变为 '" + $("#step1194").val() + "';<br />";
        }
        datas.step11.step1194 = $("#step1194").val();
        if (postData.Id != 0 && (datas.step11.step1195 || $("#step1195").val()) && datas.step11.step1195 != $("#step1195").val()) {
            flow.Remark += "备注由 '" + datas.step11.step1195 + "' 变为 '" + $("#step1195").val() + "';<br />";
        }
        datas.step11.step1195 = $("#step1195").val();
        if (postData.Id != 0 && datas.step11.step1196 != $("input[name='step1196']:checked").val()) {
            flow.Remark += "单项判定由 '"
                + (datas.step11.step1196 ? datas.step11.step1196 : "") + "' 变为 '" + $("input[name='step1196']:checked").val() + "';<br />";
        }
        datas.step11.step1196 = $("input[name='step1196']:checked").val();
        datas.step11.step1101 = $("#CA01").is(':checked');
        datas.step11.step1102 = $("#CA02").is(':checked');
        datas.step11.step1103 = $("#CA03").is(':checked');
        datas.step11.step1104 = $("#CA04").is(':checked');
        datas.step11.doc = step11Doc;
    }

    function saveStep12(postData) {
        if (postData.Id == 0) {
            datas.step12 = {};
        }
        for (var j = 1; j < 6; j++) {
            var htmlId = "step12" + j;
            if (postData.Id != 0 && (datas.step12[htmlId] || $("#" + htmlId).val())
                && datas.step12[htmlId] != $("#" + htmlId).val()) {
                flow.Remark += "位置" + j + "由 '" + datas.step12[htmlId] + "' 变为 '" + $("#" + htmlId).val() + "';<br />";
            }
            datas.step12[htmlId] = $("#" + htmlId).val();
        }
        if (postData.Id != 0 && (datas.step12.step126 || $("#step126").val()) && datas.step12.step126 != $("#step126").val()) {
            flow.Remark += "细菌集落数平均值 '" + datas.step12.step126 + "' 变为 '" + $("#step126").val() + "';<br />";
        }
        datas.step12.step126 = $("#step126").val();
        if (postData.Id != 0 && (datas.step12.step127 || $("#step127").val()) && datas.step12.step127 != $("#step127").val()) {
            flow.Remark += "采集开始时间 '" + datas.step12.step127 + "' 变为 '" + $("#step127").val() + "';<br />";
        }
        datas.step12.step127 = $("#step127").val();
        if (postData.Id != 0 && (datas.step12.step128 || $("#step128").val()) && datas.step12.step128 != $("#step128").val()) {
            flow.Remark += "采集结束时间 '" + datas.step12.step128 + "' 变为 '" + $("#step128").val() + "';<br />";
        }
        datas.step12.step128 = $("#step128").val();
        if (postData.Id != 0 && (datas.step12.step129 || $("#step129").val()) && datas.step12.step129 != $("#step129").val()) {
            flow.Remark += "采集周期 '" + datas.step12.step129 + "' 变为 '" + $("#step129").val() + "';<br />";
        }
        datas.step12.step129 = $("#step129").val();
        if (postData.Id != 0 && (datas.step12.step1210 || $("#step1210").val()) && datas.step12.step1210 != $("#step1210").val()) {
            flow.Remark += "培养温度 '" + datas.step12.step1210 + "' 变为 '" + $("#step1210").val() + "';<br />";
        }
        datas.step12.step1210 = $("#step1210").val();
        if (postData.Id != 0 && (datas.step12.step1211 || $("#step1211").val()) && datas.step12.step1211 != $("#step1211").val()) {
            flow.Remark += "培养开始时间 '" + datas.step12.step1211 + "' 变为 '" + $("#step1211").val() + "';<br />";
        }
        datas.step12.step1211 = $("#step1211").val();
        if (postData.Id != 0 && (datas.step12.step1212 || $("#step1212").val()) && datas.step12.step1212 != $("#step1212").val()) {
            flow.Remark += "培养结束时间 '" + datas.step12.step1212 + "' 变为 '" + $("#step1212").val() + "';<br />";
        }
        datas.step12.step1212 = $("#step1212").val();
        if (postData.Id != 0 && (datas.step12.step1213 || $("#step1213").val()) && datas.step12.step1213 != $("#step1213").val()) {
            flow.Remark += "培养周期（h） '" + datas.step12.step1213 + "' 变为 '" + $("#step1213").val() + "';<br />";
        }
        datas.step12.step1213 = $("#step1213").val();
        if (postData.Id != 0 && (datas.step12.step1214 || $("#step1214").val()) && datas.step12.step1214 != $("#step1214").val()) {
            flow.Remark += "备注由 '" + datas.step12.step1214 + "' 变为 '" + $("#step1214").val() + "';<br />";
        }
        datas.step12.step1214 = $("#step1214").val();
        if (postData.Id != 0 && datas.step12.step1215 != $("input[name='step1215']:checked").val()) {
            flow.Remark += "单项判定由 '"
                + (datas.step12.step1215 ? datas.step12.step1215 : "") + "' 变为 '" + $("input[name='step1215']:checked").val() + "';<br />";
        }
        datas.step12.step1215 = $("input[name='step1215']:checked").val();
        datas.step12.doc = step12Doc;
    }

    function getRowAvg(part, index, count) {
        var arr = [];
        for (var i = 1; i < count + 1; i++) {
            var htmlId = "#" + part + i + index;
            if ($(htmlId).val()) {
                arr.push($(htmlId).val());
            }
        }
        var ret = 0;
        for (var i = 0; i < arr.length; i++) {
            ret = ret + Number(arr[i]);
        }
        return ret / arr.length;
    }

    function getColAvg(part, index, count) {
        var arr = [];
        for (var i = 1; i < count + 1; i++) {
            var htmlId = "#" + part + index + i;
            if ($(htmlId).val()) {
                arr.push($(htmlId).val());
            }
        }
        var ret = 0;
        for (var i = 0; i < arr.length; i++) {
            ret = ret + Number(arr[i]);
        }
        return ret / arr.length;
    }

    function getAvg(part, sIndex, count) {
        var arr = [];
        for (var i = sIndex; i < count + 1; i++) {
            var htmlId = "#" + part + i;
            if ($(htmlId).val()) {
                arr.push($(htmlId).val());
            }
        }
        var ret = 0;
        for (var i = 0; i < arr.length; i++) {
            ret = ret + Number(arr[i]);
        }
        return ret / arr.length;
    }

    function getMax(part, ri, ci) {
        var arr = [];
        for (var i = 1; i < ri + 1; i++) {
            for (var j = 1; j < ci + 1; j++) {
                var htmlId = "#" + part + i + j;
                if ($(htmlId).val()) {
                    arr.push($(htmlId).val());
                }
            }
        }
        return getMaxOfArray(arr);
    }

    function getMaxOfArray(numArray) {
        return Math.max.apply(null, numArray);
    }

    function getMin(part, sIndex, count) {
        var arr = [];
        for (var i = sIndex; i < count + 1; i++) {
            var htmlId = "#" + part + i;
            if ($(htmlId).val()) {
                arr.push($(htmlId).val());
            }
        }
        return getMinOfArray(arr);
    }

    function getMinOfArray(numArray) {
        return Math.min.apply(null, numArray);
    }

    function bindDVD_DV() {
        var dv = getColAvg('step6', '13', 4).toFixed(2);
        var dvi = getMax('step6', 12, 4).toFixed(2);
        var dvdms = Math.abs(dvi - dv).toFixed(2);
        var dvd = (dvdms / dv * 100).toFixed(0);
        $("#step6151").val(dv);
        $("#step6171").val(dvd);
    }

    function getstddev(data) {
        var mean = getmean(data);
        var deviations = getdeviation(data);
        return data.length > 1 ? Math.sqrt(deviations.map(square).reduce(sum) / (data.length - 1)) : 0;
    }

    var sum = function (x, y) {
        var nx = Number(x);
        var ny = Number(y);
        return nx + ny;
    };

    var square = function (x) {
        var nx = Number(x);
        return nx * nx;
    };

    function getmean(data) {
        return data.reduce(sum) / data.length;
    }

    function getdeviation(data) {
        return data.map(function (x) { return x - getmean(data); });
    }
</script>
